Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with record update on insert trigger
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Problem with record update on insert trigger
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01534183
Message ID:
01534183
Vues:
92
I have two tables with a one to many relationships. I have set buffer mode to 5 on the detail table. I want to execute code to update a field within the record that is currently updated on the insert trigger. The field will hold an unique number that I will assign as each record is updated. I am doing this since I want the number I assign to run in sequence with no gaps and the number is alphanumeric.
However, when I try to replace the field with the value I have generated i get a message that the cursor is readonly.

How can I replace the value of the current record being updated (I use Tableupdate command) before the physical update is executed without getting the readonly record?

Thanks in advance.

Stuart
Stuart Reid

True nobility lies not in being superior to another man, but in being superior to one’s previous self
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform