Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scatter Memvar issues
Message
From
19/12/2005 19:38:14
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
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:
01079381
Views:
34
>I'm using SCATTER MEMVAR in the FORM1.LOAD procedure and when I put values into the m. in the form 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?

Douglas,
It's better to use buffering instead. Alternatively if you want to do a scatter/gather rather than scattering to memvar scatter to a name and add it to form. ie:

*form init
this.Addproperty('oRecord')
select myTable
scatter name this.oRecord

*this.txtCompany.ControlSource = "thisform.oRecord.Company" && assuming there is a company field

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform