Here's an 11 year old pupil of mine:
- -
Which "threw me off" quite a bit as I ALWAYS (in my EFL programs) use a Tick image for end users to check a field's contents.
- -
I had never used the RETURN key, and had never worked out how to.
SO . . . to the much-maligned built-in Dictionary and found on ReturnInField, which, was, frankly, like being handed the keys to
the Holy Kingdom on a plate:
Code: Select all
on returnInField
if fld "ff" contains "black" then
set the vis of img "YES" to true
set the vis of img "NO" to false
else
set the vis of img "YES" to false
set the vis of img "NO" to true
end if
if fld "ff" is empty then
set the vis of img "YES" to false
set the vis of img "NO" to false
end if
end returnInField