Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Am I misusing TableUpdate()?
Message
 
To
12/09/1999 22:06:24
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00261437
Message ID:
00264058
Views:
41
>VFP keeps track of what are new and what are current records (to decide whether to INSERT or UPDATE) with the Fieldstate of the view. When checking GETFLDSTATE-1) on oyur view before tableupdating, does it show 2s or 4s?


I changed one field in a visible record and GetFldState says:
34444444444444444443

Then I click my button to fire the tableupdate() and VFP does not complain that the record didn't get updated. But it definitely didn't happen.




In the view designer. Update criteria on the remote view of VFP table is "send sql updates" and all fields are checked under the pencil and the primary key has a check under it. SQL Where clause includes "Key Fields Only". Update using "SQL Update".

In the table designer. Table has a primary index.

In the form designer. Form's data properity buffermode=2(optimistic). Private data session.

In the data environment, only the view is present (ie underlying VFP table is not in there). BufferModeOverride=5. Readonly is .f.

In click event of my favorite button, there is:
select CustUpdate
tableupdate(1,.t.,alias())
*use FarDBC1!CustUpdate nodata
*ThisForm.Refresh
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform