Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Memory variable disappears
Message
De
03/07/2000 12:18:27
Steve Summers
Pima County Superior Court
Tucson, Arizona, États-Unis
 
 
À
03/07/2000 11:58:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00387763
Message ID:
00387772
Vues:
20
VFP 6.0

My application starts is a screen that I have looking like a toolbar. In the init event I declare a memory variable public and give it a value.

public csr
restore from csr.mem

There are a few buttons on the toolbar that run a few modal forms/screens. when I add a record, exit the screen, and try to launch another form/screen with one of the other buttons, I get an error that says the variable "csr" could not be found.

In the debugger it is there !!

What is going on?


As I remember the "RESTORE FROM" retrieves variables and variable arrays saved in a variable file. Before you can retrieve a variable from a variable file you must issue "SAVE TO". Is the file you are saving the variables named csr.mem?
Thanks in advance or I hope this helps!

[STS]
:>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform