Subject Re: SpeedTip followup
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Wed, 22 Feb 2023 09:03:41 -0800
Newsgroups dbase.getting-started

On 2/22/2023 7:22 AM, Tom wrote:

>> 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 ...)

Ken


--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm
dBASE Web Tutorial: http://www.goldenstag.net/dbase/WebTutorial/00_Menu.htm
dBASE DOS to Windows Tutorial:
http://www.goldenstag.net/dbase/DtoWTutorial/00_Menu.htm