Dear Chipp and List,

Thanks for the tip, however I don't think that really explains it. In the case below we haven't added anything to the stack and if you inspect the stack in Rev the ID is correct.

Anyway it is a small lesson, and a bit of unlearning for me. In the old HyperCard days, the ID was the best unique FIXED identifier for objects, stacks, cards. These objects could have the same name and the ID was sure to get you the correct card/stack etc.

Anyway I'm still scratching my head, bit of an unsolved problem and strangeness. Anyone else got any ideas why you can't reference a stack by its ID?

Thanks again Chipp!

M@
Matt

On Wednesday, January 22, 2003, at 09:56 PM, "Chipp Walters" <[EMAIL PROTECTED]> wrote:

I checked this out in both RR and MC. You are correct. Here's my best
thinking why this doesn't work.

The ID of a stack continually changes, incrementing as you add controls. So,
using it as a stack reference in a script is probably never a good thing,
expecially if controls are ever added.


Create a new stack. Add a button. Put this script in the button:

on mouseUp
put the abbrev id of this stack into tThisID
put tThisID
hide tThisID
end mouseUp

... the msg box contains "stack id 1003" or whatever. But the last
statement doesn't work, just an error! I trawled the archives and
nothing, I'm sure I'm missin' something!

Of course it WORKS if we have:

on mouseUp
put the long name of this stack into tThisID
put tThisID
hide tThisID
end mouseUp

So why is the ID so obscure? I've tried all my ol' HyperCard concepts,
just can't get my head around this one. No sub-stacks, nothing.
M@tt
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Reply via email to