Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Arrays by reference as parameters in form methods
Message
De
18/09/2002 03:14:41
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00701611
Message ID:
00701636
Vues:
15
>You can add EXTERNAL ARRAY arank to the Method B.

Probably you meant EXTERNAL ARRAY lrank in Method B. If it is referencing arank which is in calling method , parameter doesn't seem to be needed. My reason for having a parameter is it could be arank4 or arank6 array in a calling method.

>
>>Is the only way to avoid complaint when local array from method A of the form method passed as parameter to method B of this form to place DIMENSION at the end of method B
>>
>>Method A
>>
>>dimension arank[1]
>>...
>>thisform.get_id( @arank)
>>
>>Method B
>>lparamaters lrank
>>
>>for li=1 to alen(lrank)
>>...
>>endfor
>>return .T.
>>dimension lrank[1]
>>
>>Thank you
>>Michael
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform