Question about the name of the target for new graphics

J. Landman Gay jacque at hyperactivesw.com
Tue Jan 20 01:05:08 EST 2004


On 1/19/04 11:17 PM, Doug Lerner wrote:

> So - when does the name set in
> 
>     new graphic newName
> 
> get set so proper logging and verification can be done? Where does that
> happen? I didn't see anything that did that in the internal newGraphic
> handler.
> 
> Would
> 
>     set the name of the templateGraphic to newName
> 
> be helpful before the "new graphic" command? That is where I set the other
> properties.

I've never tried it, but I suppose it would work. What I usually do is 
something like:

create graphic "newGraphic"
put the name of last graphic after fld "mylog" -- or whatever

Or, since you already know the name of the new graphic, you can just log 
it directly:

create graphic "newGraphic"
put "newGraphic" after fld "mylog"

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



More information about the use-livecode mailing list