Handle: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
(Created page with "In QB64 '''handles''' are created and used by various statements and functions to reference screen surfaces, images, sounds, fonts and IP users. {{PageSyntax}} ::: '''handle& =''' _NEWIMAGE(800, 600, 32) ::: _FREEIMAGE '''handle&''' ''Usage:'' * SCREEN and image handles in use cannot be freed without error! Change screens or fonts before freeing the handle from memory! * The actual value of the handle is only important if it fails to return a value in the range s...")
 
No edit summary
Line 23: Line 23:




''See also:''
{{PageSeeAlso}}
* [[_SOURCE]], [[_DEST]]
* [[_SOURCE]], [[_DEST]]




{{PageNavigation}}
{{PageNavigation}}

Revision as of 00:41, 29 January 2023

In QB64 handles are created and used by various statements and functions to reference screen surfaces, images, sounds, fonts and IP users.


Syntax

handle& = _NEWIMAGE(800, 600, 32)
_FREEIMAGE handle&


Usage:

  • SCREEN and image handles in use cannot be freed without error! Change screens or fonts before freeing the handle from memory!
  • The actual value of the handle is only important if it fails to return a value in the range specified. A bad return value may create errors!


Handle Functions:

Valid LONG handle returns are less than -1. Failed _LOADIMAGE handle values of -1, zero or positive values are invalid.


See also



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link