Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete a record based on a cursor
Message
De
26/06/2002 11:39:06
 
 
À
25/06/2002 19:08:39
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00672147
Message ID:
00672498
Vues:
5
>>>Nope. I am not doing a tableupdate() after the Insert. Just tested it. However, the Update does not work now. Do I have to add the tableupdate() code after the Update statement?
>>>
>>
>>Yes, you need tableupdate() there, too...
>>
>A straight forward tableupdate(0,.t.,'TabelA') after the Update statement?

Ravi,

To cover the possibility that another user saved changes the record since this user started editing it, you might want to:
if tableupdate(0,.f.,'TableA')
   * it worked
else
   * failed, show a message to the user, or do whatever you think is necessary...
endif
If you use .t. as the second parameter, tableupdate() will write over any changes on that record that might have just been made by another user. Look at the getFldState() function. You can call it before first to determine whether you need to calling tableupdate(0,.t.,'TableA'), or display a message to the user.

You can see there is more than one way to go here.

Did I muddy the waters? *grin*
Steve Gibson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform