Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrays by reference as parameters in form methods
Message
From
18/09/2002 03:14:41
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00701611
Message ID:
00701636
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform