Information générale
Catégorie:
Codage, syntaxe et commandes
>>>>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement