Difference between revisions of "VARPTR$"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
m
imported>Clippy
m
Line 11: Line 11:
{{CodeStart}}
{{CodeStart}}
{{Cl|DRAW}} "TA=" + {{Cl|VARPTR$}}(angle)
{{Cl|DRAW}} "TA=" + {{Cl|VARPTR$}}(angle)
{{CodeEnd
{{CodeEnd}}





Revision as of 11:21, 15 October 2010

VARPTR$ is a memory function that returns a STRING representation of a variable's memory address value for use in a DRAW or PLAY statement.


Syntax: value$ = VARPTR(variable_name)


  • When using this function with DRAW or PLAY strings, use an = sign.


Example: Using the function to change a Turn Angle value in DRAW.

DRAW "TA=" + VARPTR$(angle)


See also:



Navigation:
Keyword Reference - Alphabetical
Keyword Reference - By Usage
Main Wiki Page