Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple records update validation question
Message
 
 
À
16/05/2007 12:38:12
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:
01226082
Vues:
24
>>Thanks in advance.
>
>
>I would
>
>- take the focus off the grid
>- select grid.RecordSource
>- Success = TRUE
>- scan all while Success
>    Success = ValidateInfo()
>  endscan
>
>do case
>case !m.Success
>
>otherwise
>    begin transaction
>    save the lot
>
>    if( SomeErrorDuringSave )
>      rollback
>    else
>      end transaction
>    endif
>
>endcase
>
Gregory,

Why do we need to check not modified records?

But you agree I need a loop here, right?

I'm now thinking, I need to save touched records somehow simply, say, in extra cursor. And I do need to add EditBox valid at least.
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