Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memory variable disappears
Message
From
03/07/2000 12:18:27
Steve Summers
Pima County Superior Court
Tucson, Arizona, United States
 
 
To
03/07/2000 11:58:32
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00387763
Message ID:
00387772
Views:
19
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]
:>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform