Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Interactive changes in Grids and Tables
Message
 
To
26/08/1999 14:52:37
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00258094
Message ID:
00258101
Views:
11
Hi Gerry,

If I'm understanding correctly and Changed is a field in a table named PHONEBOOK, then you'll need to:

Replace PhoneBook.Changed with .T.

Yes, changed = .t. would create a local variable, and without the replace command VFP assumes you are trying to refer to an object named PhoneBook.

>I have a form containing a grid whose data source is a DBF table. As soon as the user edits any field in the grid I want to set a field of the DBF called 'changed' to .T. The idea being to send only the changed records to another application at the end of the editing session.
>
>I have tried putting the following code in the the GRID1.COLUMN1.TEXT1.IntercativeChange event :
>
>PHONEBOOK.changed = .T.
>
>However I get a runtime error
>
>Object PHONEBOOK not found. I have omitted the ALIAS name and the error goes away i.e.:
>
>changed = .T.
>
>The database is never updated and I suspect that the above line merely creates a local variable that is destroyed as the procedure exits.
>
>Can anyone help with a bug fix or even a better strategy.
>
>Thanks,
>
>Gerry.
kenweber
GCom2 Solutions
Microsoft Certified Professional

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform