QB64.com

QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

See DECLARE LIBRARY.

The ALIAS clause in a DECLARE LIBRARY statement block tells the program the name of the procedure used in the external library.

Syntax

SUB pseudoname ALIAS actualname [(parameters)]

Parameter(s)

Description

Example(s)

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


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

DO UNTIL _SCREENEXISTS: LOOP
PRINT "Hit a key..."
SLEEP

MouseMove 1, 1

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