Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple records update validation question
Message
 
 
To
16/05/2007 12:38:12
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01226060
Message ID:
01226082
Views:
20
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform