Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do form with @laMyArray to llWhatever
Message
 
To
06/01/2005 14:07:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00974779
Message ID:
00974795
Views:
27
This message has been marked as the solution to the initial question of the thread.
>I declared my array
>
>local array laMyArray
>
>I want to call a form that will add rows to the array
>
>How do I call my form with a local array.
>
>if I do
>
>do form with @laMyArray to llWhatever
>
>it gives an error. "Command contains unrecognized phrase/keyword" and the problem is @laMyArray within the do form...

Other way (dfferent then Beth's) is to declare ARRAY as Private. Then You can manage it in form w/o problems.

i.e.
DIMENSION laMyArray[5]

DO FORM Test TO llWhatever

** In any event or method of the Form Test You can do whatever You want with array
DIMENSION laMyArray[6]
laMyArray[6] = "bla bla"

....
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform