Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing arrays - help
Message
De
21/11/2000 15:24:26
 
 
À
21/11/2000 12:36:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00444229
Message ID:
00444330
Vues:
8
>>>>>What is the syntax for passing a two dimentional array to a function? When my function receives the array it is not an array, just a character type. How do I pass an array?
>>>
>>>>=MyFunc(@MyArray)
>>>
>>>I tried that. But myarray is really thisformset.myarray and the function call does not like (@thisformset.myarray).
>>>
>>>Brenda
>>
>>Then you have to ACOPY(thisformset.myarray, MyArray) first
>
>dagnabit - always hitting send too soon...
>
>Or you can pass an object reference to the formset itself
>MyFunc(thisformset)

Trey:

Could you educate me a bit on this? You say to "pass an object reference" into the function. Is this truely passed by reference in that changes made to the parameter are reflected back the same way changes made to an array passed by reference are passed back???

Thanks........Rich
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform