How to tell when a table field has changed

Bill Vlahos bvlahos at mac.com
Mon Oct 20 12:35:16 EDT 2008


I'll submit this as a feature request and document the bug in the existing code.

Bill Vlahos
 
On Monday, October 20, 2008, at 02:25AM, "Jan Schenkel" <janschenkel at yahoo.com> wrote:
>--- Bill Vlahos <bvlahos at mac.com> wrote:
>> Jan,
>> 
>> Thanks. It looks like it sends the
>> revUpdateCellValue message whenever  
>> a cell changes (like when pressing tab or return)
>> not just when the  
>> value changes. Unfortunately, without the pOldText
>> value I can't tell  
>> if it changed or not.
>> 
>> Maybe you were thinking of a different message that
>> only sends when  
>> the value changes? If not, I'll report the pOldText
>> value missing as a  
>> bug.
>> 
>> Bill
>> 
>
>Hi Bill,
>
>The thing is, 'revUpdateCellValue' is an undocumented
>message and may not be around in the next version or
>may change parameters. Right now, it is caught in the
>'revCommon' backscript to prevent error messages until
>this is either 'officialized' or 'deprecated'
>Right now there is no API at all, and I don't think
>'closeField' is the correct message to send to the
>table field - maybe there should be an 'openCell' /
>'closeCell' / 'exitCell' triad triggered from the
>frontscript until we get a real table control.
>As for getting messages when nothing has changed, this
>has to do with the internal workings of the 'revTable'
>frontscript - it insists on saving the value in the
>current cell before moving on to another cell, and
>that part of the script assumes something has changed.
>Faced with this chicken-and-egg problem, one would
>probably like to see this error fixed and a
>semi-definitive API published for the table field - in
>the same way that some bits of the 'revDatabase'
>frontscript have been opened up.
>
>Jan Schenkel.
>
>Quartam Reports & PDF Library for Revolution
><http://www.quartam.com>
>
>=====
>"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around 
>http://mail.yahoo.com 
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-revolution
>
>



More information about the use-livecode mailing list