Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Parameters by Reference to an Object
Message
De
14/03/1997 09:47:00
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00024219
Message ID:
00024239
Vues:
35
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform