Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scatter Memvar issues
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01079371
Message ID:
01079375
Views:
92
Douglas,

>I'm using SCATTER MEMVAR in the FORM1.LOAD procedure and when I put values into the m. in the form

That is sooooooooo early nineties. *g*

>and then click on a button that is to issue: INSERT INTO tbl FROM MEMVAR... I get the error that a variable is not found of the same name as the primary index field of the table (tbl) that I'm trying to add the record into. Any suggestions?

the problem is the memvars you created in Load went out of scope as soon as the method ended.

With the table buffering modes available in VFP there isn't a good reason to edit to memvars any more. Bind your controls directly to the fields themselves.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform