Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SCATTER problem
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01266531
Message ID:
01266548
Views:
9
>I'm having a problem with SCATTER, (it creates the memvars, but doesn't populate them when I issue the command in the INIT of a form). The form is an update for a CONFIG table. The table is opened when the main program is started and remains open until the application is closed. In the INIT of the form I issue the "SCATTER MEMVAR" command. The debugger shows that the memvars are created, but empty. I tested with a small program to open the table, issue the "SCATTER MEMVAR", and it works fine.
>
>I tried "SCATTER NAME oTemp", which created the object with properties for each of the fields in the table, but the object was not visible to the controls on the form that had the control source for that object.
>
>Any suggestions?
>
>Thanks in advance,
>
>Harry

Harry,
All variables created by SCATTER are created as PRIVATE. That means that when the form init event is over these variables are released. The same thing is valid for oTemp object.
What happens if you try:
*** Init EVENT of the form

thisform.AddProperty([oTest])
SCATTER NAME thisform.oTest
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform