Error getting tags :
error 404Error getting tags :
error 404 altID | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
altID
Basics
Expander triangle
Type
Property
Syntax
set the altID of object to IDNumber
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Specifies an alternate ID for objects.
Examples

put the altID of this card into myID
repeat while the altID of stack myStack <> 0

Additional Comments
Expander triangle

Use the altID property to specify an additional ID for an object. Both the ID and the altID property are checked when you refer to an object by ID.

Value:

The altID property of an object is a non-negative integer.

By default, the altID for all objects is zero.

Comments:

This property can be used to ensure compatibility with imported SuperCard and HyperCard stacks that assume buttons and fields are created with sequential IDs. You can also use the altID of a stack as a consistent way of referring to it, since the ID of a stack changes every time an object is created.

Gotcha: Be careful not to set an object'saltIDproperty to the ID of an object of the same type. Since both properties are checked when you refer to an object by ID, doing this may cause the wrong object to be found because its altIDproperty is the same as the ID of the object you want.

User Comments
Expander triangle
User thumbnail
(hidden)
StarStarStarStarStar
Apr 16, 2009
altIDs cannot be used in imageSource references. e.g.


set the imagesource of char 1 of line 2 of fld "fld1" to 9999

where 9999 is the altID of some image object will not work.