Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem public array
Message
 
 
À
28/10/2003 15:43:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00843759
Message ID:
00843771
Vues:
14
This message has been marked as the solution to the initial question of the thread.
Randy,
This may mean that the variables are private in scope, not public. If you assign a value to a variable within a form method without any definition, that variable is private in scope. If after you assign a value, you call procedures in your procedure file, any variable you created in the form method is visible within that procedure.

Using the SET PROCEDURE command does not run any code in the procedure. Any declarations you have will not get executed. If you want to go this route, I would suggest making a new procedure and setting up the variables. After the SET PROCEDURE command, you can immediately the setup procedure to create and initialize all the variables.

Regards.

>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.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform