If exists question

Dar Scott dsc at swcp.com
Sun Mar 28 17:24:21 EST 2004


On Sunday, March 28, 2004, at 09:50 AM, Mark MacKenzie wrote:

> I create by cloning from a "master" card a new card.  During the 
> cloning I capture the new card's abbreviated ID and change its card 
> name to "EmptyCard".
>
> The new card's abbr ID is put into global gNewCardID
>
> Then, at the end of this handler:
>
> wait 30 milliseconds -- put in to allow Rev to catch up with functions
> if exists(gNewCardID)
>    then
>       go to gNewCardID
>       put emtpy into gNewCardID
> end if

Just some ideas for experimenting.  Try long ID.  Try not changing the 
name.  Look at what is in pendingMessages.  Try 'with messages' in the 
wait.

(Ditto here on needing to get into debugging features.)

Dar Scott



More information about the use-livecode mailing list