Hi,
When I try to run some VB6 code, I get the following error:
Microsoft VBScript runtime error: Invalid procedure call or argument: 'stx.ResolveAddress'
However, in the code below, if I do NOT set the return to "stx.ResolveAddress" to a variable, I do NOT get the above error.
Set stx = CreateObject("MyApp.Api.Wse3.STxTransactionService")
Set addr = CreateObject("MyApp.Api.Wse3.Address")
addr.Address1 = "1850 Table Mesa Dr"
addr.Address2 = "Boulder, CO 80305"
stx.ResolveAddress(addr)
However, if I change that last line to look like this instead:
result = stx.ResolveAddress(addr)
I get the the "Invalid procedure call" error. Is there something I'm missing? Why does the assignment cause the error to happen?