Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Am I misusing TableUpdate()?
Message
 
À
12/09/1999 22:06:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00261437
Message ID:
00264058
Vues:
40
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform