Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing Parameters by Reference to an Object
Message
From
14/03/1997 09:47:00
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00024219
Message ID:
00024239
Views:
31
>>Can anyone tell me how to pass parameters by reference when using the CREATEOBJECT()command? I'm using VFP 3.0. Any help would be greatly appreciated.
>
>check the help for syntax, but something like
>
>oThisObj = createobject('mainform',@lcCurrentRec)
>
>remember the object's init must have the parameters/lparameters statement first.

I had tried using the @, but because what I am wanting to pass is actually a property of the form I am in when I create the object, I get an error saying something like 'ALIAS THIS NOT FOUND'.

The command I am using is:

This.oPickList = CREATEOBJECT('dcspicklist',This.cdbfName,This.cKey)

The second parameter is the one I want to pass by reference. Any ideas?

Thanks.

Randy
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform