ALIAS - QB64 Wiki

ALIAS

From QB64 Wiki

Jump to: navigation, search

The ALIAS clause in the 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.


Syntax:

SUB pseudoname ALIAS actualname [(parameters)]


Parameters:


Example: Instead of creating a SUB with the Library statement inside of it, just rename it:

DECLARE LIBRARY SUB MouseMove ALIAS SDL_WarpMouse (BYVAL xoffset&, BYVAL yoffset&) END DECLARE

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.


See also:




Navigation:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page