Information générale
Catégorie:
Codage, syntaxe et commandes
>I have setup a property on my form of type array. I want to pass this array to another program by reference. But there does not seem to be any way to do this.
>
>I have tried the following:
>
>cmdWorkOnArray(@thisform.MyArray)
>cmdWorkOnArray(@(thisform.MyArray))
>cmdWorkOnArray(thisform.@MyArray)
>cmdWorkOnArray(thisform.@(MyArray))
>
>Does anyone know the answer
(Warning! Untested code ahead!)
I couldn´t find nothing but
DIMENSION A_NEW_ARRAY(ALEN(THISFORM.MYARRAY))
=ACOPY(THISFORM.MYARRAY, A_NEW_ARRAY)
cmdWorkOnArray(@A_NEW_ARRAY)
=ACOPY(A_NEW_ARRAY, THISFORM.MYARRAY)
HTH!
Précédent
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