When is a color not a color
bonnmike at gmail.com
Sat Jun 8 08:06:43 CEST 2013
A single integer is also true with "1" is a color also. The dictionary says
if it sees an integer it returns true to maintain compatibility with
supercard. Methinks the matching is still a bit loose. Works fine with hex
put "#ffffff" is a color returns true as expected, and put "#gggggg"
returns false also as expected. So, avoid integers and use hex format to
bipass the issue.
On Fri, Jun 7, 2013 at 11:54 PM, J. Landman Gay <jacque at hyperactivesw.com>wrote:
> On 6/7/13 8:57 PM, Ralph DiMola wrote:
>> Isn't the 4th number the alpha channel?
> That was my first thought too until the engine told me that
> "1,2,3,456,78,2013" was also a color. Seems it not only ignores the number
> ranges, but it only looks to see if there are (at least) 3 items.
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode