Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple records update validation question
Message
 
 
À
16/05/2007 12:24:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01226060
Message ID:
01226070
Vues:
17
>I meant that you could have a button accepting new or edited record. Most likely, it comes down to the binding again. 'Details' container fields should be 'bound' to custom 'detail' object properties, not to view/CA/cursor fields. This way user never enters to the grid, your code does it and it may include all needed validations.

I think we're talking about different scenarios. You're proposing to have one record editting at the time. Usually I use similar approach but in this particular case I allow multiple records editting at the same form.

I'm thinking that the only reliable way would be to loop through all records which were touched (using GetNextModified function) and check each record.

A bit tedious, but I do not see a way to do it using direct control validations.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform