Subject |
getColor |
From |
Peter Hegelbach <peter@hegelbach.com> |
Date |
Mon, 22 Feb 2021 21:02:44 +0100 |
Newsgroups |
dbase.getting-started |
Attachment(s) |
Screenshot.PNG |
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?
See screenshot attached.
Peter
|
|