Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing arrays to procedures when array is a form proper
Message
From
26/10/1998 16:15:48
 
 
To
26/10/1998 16:11:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00150651
Message ID:
00150653
Views:
12
>Hello:
>
>To pass an array to a procedure, to modify it, I use the syntax:
>rtnval = procedure_name(@arrayname)
>
>How do I do the same using an array which is a form property? Foxpro does not accept the following code:
>rtnval = procedure_name(@thisform.arrayname)
>
>Thanks.

The simplest solution is to pass form object itself and if necessary property-array name too:
rtnval=myproc(thisform,"myarray")

Function myproc
Lparameter oForm,cArrayname
oForm.&cArrayname.[23]="something"
Return oForm.&cArrayname.[14]
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform