strange color behavior in datagrid form

Trevor DeVore lists at mangomultimedia.com
Mon Mar 15 12:13:28 EDT 2010


On Mar 14, 2010, at 1:29 PM, Yves COPPE wrote:

> I have a grid (form type)
> one fld of the grip is named "check"
>
> in the  FillInData handler I have this script
>
> if fld "check" of me contains "OK" then
> set the foregroundColor of fld "check" of me to red
> end if

You don't have an else statement to set the foregroundColor to empty  
if the field doesn't contain "OK".

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com



More information about the use-livecode mailing list