world.IsAlias
Tests to see if an alias exists
Prototype
long IsAlias(BSTR AliasName);
Description
Used to test if an alias exists.
Note that this function returns 0 if the alias *exists*.
VBscript example
world.note world.IsAlias ("myalias")
Jscript example
world.note(world.IsAlias("myalias"));
PerlScript example
$world->note($world->IsAlias("myalias"));
Python example
world.note(world.IsAlias("myalias"))
Lua example
Note(IsAlias("myalias"))
Return value
eInvalidObjectLabel: The alias name is not valid
eAliasNotFound: The named alias does not exist
eOK: completed OK - ie. The alias exists.
Related topic
See also
| Function | Description |
|---|---|
| AddAlias | Adds an alias |
| DeleteAlias | Deletes an alias |
| EnableAlias | Enables or disables an alias |
| GetAlias | Gets details about an alias |
| GetAliasInfo | Gets details about an alias |
| GetAliasList | Gets the list of aliases |