Param Naming - Object by Reference Best Practices

J. Landman Gay jacque at hyperactivesw.com
Wed May 31 23:58:49 CEST 2017


On 5/31/17 4:06 PM, Sannyasin Brahmanathaswami via use-livecode wrote:
> One does not expect this to be improperly evaluated
> 
> put "graphic portal-title-bkgnd" into pObject
> 
> What do you do? And why?

I suspect the engine is trying to do subtraction since it can't tell you 
are referring to a literal name. Try putting the name of the object in 
quotes, see if that helps:

put "graphic" && quote& "portal-title-bkgnd" & quote into pObject

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list