Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing an array to a form
Message
From
30/06/1999 08:32:02
 
 
To
30/06/1999 02:07:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00235291
Message ID:
00235794
Views:
20
>Yeah, I knew there was a simple solution, it just was eluding me. JimB pointed out to me the fact that DO's are ByRef by default and that escaped me somehow. BTW, in your example, you were using an "l" as the prefix for your array....how can it be "l" if it's being passed off? My turn for the evil grin :-)

Actually, I think "l"is still te right prefix. (Am open to argument though). The LPARAMETERS statement in the form init creates a new local name for the variable. We then have actually two faces for he same variable. If I call the array something different in the init, the example still works. Even changing the contents of the newly named array in the form::init changes the contents of the original as well. Neither is the original array in scope from the init statement, nor the new one in scope for the calling procedure. I think that makes them both local.

Hence "l" is the correct prefix.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform