Subject |
Re: getColor |
From |
Peter Hegelbach <peter@hegelbach.com> |
Date |
Mon, 22 Feb 2021 21:12:04 +0100 |
Newsgroups |
dbase.getting-started |
Thanks Ken
You are right
but should the sample not work as printed?
Peter
Am 22.02.2021 um 21:07 schrieb Ken Mayer:
> On 2/22/2021 12:02 PM, Peter Hegelbach wrote:
>> Hi all
>>
>> From OLH: Sample getColor:
>>
>> function backgroundColorButton_onClick
>> private rgbValue // Use private for ¯o
>> rgbValue = getcolor()
>> if rgbValue # ""
>> form.colorscheme1.rowset.fields[ "BACKGROUND" ].value = rgbValue
>> define color SAMPLE_BG &rgbValue
>> form.sampleBackground.colorNormal = "SAMPLE_BG"
>> endif
>>
>>
>> but row if rgbValue # "" does in dBase 2019 not work as it should
>> it gives back allwas a false
>>
>>
>> I tried also in the command-window:
>>
>> a = "171,91,242"
>> ? a = ""
>>
>> gives me back a true
>>
>> Is that a bug or not?
>
> Try
>
> ? a == "" // exactly equal
>
> That should return false.
>
> Ken
>
>
>
|
|