mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-16 16:44:05 +00:00
6e01fc8dce
Added new _STRCMP and _STRICMP commands for quick string comparisons. Cleaned up QB64 to finish removing the QUI (quick user insert) code and folders. Altered UCASE and LCASE routines to be faster in some situations for us.
32 lines
No EOL
1.2 KiB
Text
32 lines
No EOL
1.2 KiB
Text
The '''ALIAS''' clause in the {{KW|DECLARE (non-BASIC statement)|DECLARE}} statement tells the program that you will use a different name than that in the library. This only applies when declaring non-BASIC procedures.
|
|
|
|
|
|
{{PageSyntax}}
|
|
::: SUB ''pseudoname'' '''ALIAS ''actualname''''' [(''parameters'')]
|
|
|
|
|
|
{{Parameters}}
|
|
* The ''actual name'' is the same procedure name as it is inside of the library.
|
|
* The name does not have to be inside of quotes when using [[DECLARE LIBRARY]].
|
|
* [[Keywords currently not supported by QB64|QB64 supports ALIAS in DECLARE LIBRARY procedures only!]]
|
|
|
|
|
|
''Example:'' Instead of creating a SUB with the Library statement inside of it, just rename it:
|
|
{{CodeStart}} '' ''
|
|
{{Cl|DECLARE LIBRARY}}
|
|
{{Cl|SUB}} MouseMove {{Cl|ALIAS}} SDL_WarpMouse ({{Cl|BYVAL}} xoffset&, {{Cl|BYVAL}} yoffset&)
|
|
{{Cl|DECLARE LIBRARY|END DECLARE}}
|
|
{{CodeEnd}}
|
|
:''Explanation:'' When a Library procedure is used to represent another procedure name use ALIAS instead. Saves creating a SUB! Just place your name for the procedure first with the actual Library name after ALIAS.
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
* [[DECLARE LIBRARY]], [[BYVAL]]
|
|
* [[DECLARE DYNAMIC LIBRARY]]
|
|
* [[DECLARE (non-BASIC statement)]]
|
|
|
|
|
|
|
|
|
|
|
|
{{PageNavigation}} |