Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM & Data Types
Message
From
18/07/2000 12:32:29
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
COM & Data Types
Miscellaneous
Thread ID:
00393893
Message ID:
00393893
Views:
56
Is it not possible within a COM server to change the data type of a variable passed by reference?
For Example,
PROCEDURE oComObject.GetSomething
 LPARAMETERS tuVar

 tuVar = 9

 Return llSuccess
ENDPROC
In the calling procedure:
lcVar = ''
oComObject.GetSomething(@lcVar)
Prior to calling the method, lcVar is an empty string.
After calling this method, lcVar is STILL of character type, now containg the value '9'. Can you not change the data type of the By Ref. variable?

TIA,
Jon
Reply
Map
View

Click here to load this message in the networking platform