If exists question
sarahr at genesearch.com.au
Sun Mar 28 21:48:28 CST 2004
> 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)
> go to gNewCardID
> put emtpy into gNewCardID
> end if
> Rev can't find this new card. I have captured the global gNewCardID
> into "msg" and it updates and shows the newly created card abb ID.
> I have tried this handler with the card name as well with the same
> When this function doesn't work it is usually within the IDE even with
> the Development Tools suspended.
> The question is, I guess, has anyone found peculiarities or
> idiosyncracies with Rev's "exists" function and how did you get around
> them or trap the errors for correction? I have looked to no avail in
> the archives.
I haven't found any problems but I tend to use:
if there is a gNewCardID
Maybe that will work better.
More information about the use-livecode