Syntax

icon <index> [of <project>]
name of icon <index> [of <project>]
name of icon id <iconID> [of <project>]
number of icons [of <project>]

Explanation

These functions allow you to use, list and inspect the icons available in a project.

icon

Returns the unique icon identifier number of the indexth icon in the project.

name of icon

Returns the name of the indexth icon in the project.

name of icon id

Returns the name of the icon in the project that has the unique icon identifier number given. For compatibility with HyperCard, you can also use iconName(<iconID>) to get the same effect.

number of icons

Returns how many icons exist in a given project (or this project if no project is explicitly stated). This is useful for listing icons and letting a user choose from them, together with icon <index>.

See Also