Question about the name of the target for new graphics
Doug Lerner
doug at webcrossing.com
Tue Jan 20 01:14:48 EST 2004
On 1/20/04 3:05 PM, "J. Landman Gay" <jacque at hyperactivesw.com> wrote:
> 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"
Right. But... I wanted to simultaneously check to make sure the name was set
right. Just logging what I think it *ought* to be isn't the best way. :)
doug
More information about the use-livecode
mailing list