On 10/13/16 9:56 PM, Sannyasin Brahmanathaswami wrote:
But when passed as a param the gradient ramp gets (where start defaults to
kPureWhite)
setRamp "","","",sSoftRed,"","" # this also fails
# we see this:
0.00000,255,255,255,255
1.00000,sSoftRed,255
# or
0.00000,255,255,255,255
1.00000,kSoftRed,255
# if I try to pass the param as a constant
and errors out with "bad gradient ramp" because the literal string value of the
name of the variable or constant is passed and not the value it contains.
It should work. The only thing I can think of is if you've declared the
same variable name in the script containing the ramp handler. LC may be
using the wrong variable, and a variable without a value will return its
own name.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode