>> Lee is correct. Fixing the spelling of the second "LightGrey" in the >> iif statement now eliminates problem #2 as the color change can be >> executed multiple times. This code replaced the use of a messagebox as >> a test for the functioning of the onLeftMouseDown function. Thank you >> for the sharp eyes Lee.
This may be a case of the status of SET EXACT ... in the Command Window:
? set( "exact" )
If it is "ON", then that would cause the issue shown. I just changed the
IIF() to use "==" (the "exactly equal" operator) and see the behavior
noted. However, if I just left it as is, EXACT is "OFF" on my machine,
and it worked fine ... (I just put it back, changed == to =, recompiled
the form, and yep ...)