[thelist] Interfacing an unknown com object from ASP (long)

David.Cantrell at Gunter.AF.mil David.Cantrell at Gunter.AF.mil
Tue Aug 20 11:54:01 CDT 2002


>    intCardCheck = objKort.CardRequest(1, "1", 20, "4552629013296348", 50,
>5, 0, Cstr(ControlNo), cStr(ReplyCode), Cstr(Message), Cstr(CardType),
>Cstr(MessageNo))
>
>Which seems to be accepted by the object, but doing
>
>Response.Write Message
>
>gives nothing I'm afraid, so it doesn't *seem* to be passing back a value.

Hmm. You shouldn't need to Cstr() the variables going into the function --
you are telling VBScript to convert their types to strings *before* they go
into the function. VBScript deals with variants, not true types, so you
shouldn't have to add those.

I also gather from the above that ControlNo and ReplyCode are returning
populated strings as expected? What about CardType and MessageNo? Try
writing out the values of each of them (or one at a time in succession) and
ruling out which ones are/aren't the problems.

Also try this:

	Response.Write Len( Message )

If it gives a 0 at least you know you are getting a zero-length string. If
it fails you aren't getting a string, since Len() only accepts strings.

While still not a solution, this should at least give you a bit more to go
on.

Also, if you can keep me posted on your progress I'll keep tossing out ideas
as I get them.

BTW, I'm very curious to hear what the final problem really is when you
figure it out, if you don't mind. Got me wonderin' now... :)

HTH!
-dave



More information about the thelist mailing list