+++1

On 30/11/2013 14:06, Laurie Alvey wrote:
That is what we did before VFP and buffering. I wouldn't have thought it 
necessary these days.


________________________________
  From: Gene Wirchenko <[email protected]>
To: ProFox Email List <[email protected]>
Sent: Friday, 29 November 2013, 19:53
Subject: Grid: Row-Level Validation: Solved?
Dear Vixens and Reynards:

      I have row-level grid validation that works (so far).  I will be doing 
some further testing to try to break it, but I think might finally have my main 
problem solved.

      It is kludgy and will have to be reworked to remove explicit object 
references.

      I have to check that the underlying table is updated properly, and I am 
going to clean up my proof-of-concept code so that it is usable. After that, I 
will probably post it.

      My approach is to shadow the values for a row.

Grid Level
----------

      Declare an array of shadows.

      When the grid is being set up, size the shadow array appropriately.

      In AfterRowColChange, fill the array from the *data source*.

      In BeforeRowColChange, validate using the shadow values not the control 
values.

Input Control Level
-------------------

      After validating a value, copy it to the appropriate shadow.

Sincerely,

Gene Wirchenko


[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to