Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
From VB to VFP
Message
From
14/12/2001 20:23:32
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00594726
Message ID:
00594728
Views:
20
>Just a shot in the dark, but shouldn't it be:
>
>lcResponseCode = loEClient.GetResponseCode()
>
No, they are using an approach which I don't understand. I just told them that this methodology is quite weird. I should be able to call the method, as you mentioned, and expect it to return a string. But, don't ask me why, I have to define a variable first, pass that as a parameter and expect to receive an updated value in it after the method call. However, I just don't know how that could be achieved under COM.

If I call the method directly, as you mentioned, it'll say invalid parameter. So, I have to pass a parameter. If I pass a parameter which is not a variable, it says variable not found. So, I have to pass a variable that exists.

Note also that the VB code is not assigning the value to a variable but passing a parameter. That VB syntax is passing a parameter to the method. Otherwise, it would have been lcResponseCode=loEClient.GetResponseCode().

That method is already returning a value. It's a status 0 or 1 of the status of the method. I told them this is a weird approach. It shouldn't be done like that.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform