Subject Re: SpeedTip followup
From Lee Grant <camilee@nospam.comcast.net>
Date Fri, 24 Feb 2023 02:55:22 -0500
Newsgroups dbase.getting-started

Ken,

Those are the changes you made, that I read. I wasn't sure which
assigment operator you replaced for testing, hence I wasn't sure you
hadn't changed the := or the =.

Either way, I think I might put this thing through the debugger and
watch it for giggles and see if my theory has some basis by watching the
variable for form.colorNormal while clicking it. If it stops changing,
like I think, when the case changes, then we really have a mystery. :)

At the moment, though I should be getting that final version of the
dBASE Plus UDL for Notepad++ finished with the help/readme file, I've
been doing things around the house and working on the next UDL for dBASE
5.0 DOS. I might do the debug just to let me shift gears when my head
starts hurting from this regex stuff. :)

Lee


On 2/23/2023 11:48 PM, Ken Mayer wrote:
> On 2/23/2023 4:14 PM, Lee Grant wrote:
>> AndrewS,
>>
>> I was hoping you'd chime in, since I know you have a VM setup. :)
>>
>> Your code manually making the toggle, is what I was referring to, but
>> after I changed the spelling it worked for me, so I didn't figure any
>> other code would be necessary.
>>
>> I was trying to think why the toggling worked for Ken prior to my
>> changing the spelling, but not for me, until after.
>>
>> My theory was going to be that the original code made an assignment
>> only ':=' symbol assigning the IIF() function and it's conditions, and
>> maybe it was that assignment that kept the different spellings from
>> working. I don't know if Ken changed anything else on his sample of
>> the code or not.
>
> The only change, was as noted, I tested it once with the == instead of
> the = operator for the iif() function, otherwise, it worked as expected.
> I tested set exact on, set exact off. With exact off, and the = operator
> (not the ==) it did what it should, and toggled back and forth between
> the two colors with no exceptions, multiple times.
>
> Ken
>