This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.
This version is copyright and may only be used for local testing purposes. It may not be distributed.
Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.
Description
Add an alias to a standard keyword.
Syntax
ALIAS ExistingKeywordName AS NewNonExistentKeywordName
n = ALIAS ExistingKeywordName AS NewNonExistentKeywordName
Returns
Number
Parameters
Name |
Type |
Optional |
Meaning |
ExistingKeywordName |
No |
The name of an existent keyword name. Keyword can be taken from whatever module but module must already been loaded. |
|
NewNonExistentKeywordName |
No |
A new non existent token name to be assigned to an already existing keyword name |
Remarks
Starting from thinBasic version 1.4.0.1 ALIAS command is executed in pre-parsing phase and not during script runtime. This adds extreme power because now all thinBasic keywords can be aliases.
Restrictions
See also
Examples
USES "Console"
ALIAS Console_WriteLine AS CON_WL
ALIAS Console_WriteLine AS CWL
'---From now on you can use Console_WriteLine or CON_WL or CWL
Console_WriteLine("This is a test")
CON_WL("This is a test")
CWL("This is a test")