Get fillGradient props

Mark Wieder mwieder at ahsoftware.net
Thu Jul 7 17:44:56 EDT 2016


Sannyasin Brahmanathaswami <brahma at ...> writes:

> 
> Goal: get an explicit list of gradient properties from an object.
> 
> 
> command getGradientProps
> 
> set the defaultstack to the topstack
> 
> put the fillGradient of graphic "portal-title-bkgnd" into
lCurrentObjectProperties
> 
> put the keys of tCurrentObjectProperties
> 
> repeat for each key x in lCurrentObjectProperties
> 
> put x & " | " & lCurrentObjectProperties[x] & cr after tCheckProperties
> 
> end repeat
> 
> put tCheckProperties
> 
> end getGradientProps
> 
> No matter how I try, I cannot fetch the keys of the gradient… the dictionary
does not indicated that we cannot read this array
> 
> any ideas?

Your code works fine.
With the exception of a typo "tCurrentObjectProperties".
You might try putting "after msg" after your put statements.

...and I know I keep saying this, but...
setting "Strict compilation mode" and declaring your variables
will help save you from this kind of error. That's what it's for.
Just sayin.

-- 
 Mark Wieder
 ahsoftware at gmail.com



More information about the use-livecode mailing list