Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem public array
Message
 
To
28/10/2003 15:43:27
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00843759
Message ID:
00843774
Views:
21
Something is wrong in your code, I think.
Try this:
1. add to the form a button with on click event displays the type of the containRef_id(1)
2. from the command window declare public array containRef_id(1)
3. call the form
4. when clicking on the button, what do you see?



>hello everyone, i have a prg file that has the following declaration along with procedures that change the values of variables.
>
>PUBLIC containercount, containeritem, notFirstOp
>PUBLIC ARRAY containRef_id(1) as String
>
>In a form i set procedure to the prg.
>When i click the save button, i pause and check the watch window, none of the variables are declared; however, i can set the values of each variable EXCEPT for the public array. When I call procedures in the prg, everything is accessible EXCEPT the public array.
>
>When the code returns to the form, the variables that got changed in the prg procedure have the proper values. Doesn't this mean the form is using the public declaration of the variables from the prg. If so, why is the array not accessible. Thanks for the help.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform