Difference between revisions of "VARPTR$"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
m
imported>Clippy
m
Line 1: Line 1:
'''VARPTR$''' is a memory function that returns a [[STRING]] representation of a variables address for use in a [[DRAW]] or [[PLAY]] statement.
'''VARPTR$''' is a memory function that returns a [[STRING]] representation of a variable's memory address for use in a [[DRAW]] or [[PLAY]] statement.




* When using this function with DRAW strings, use an = sign: DRAW "TA=" + VARPTR$(n)
* 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)





Revision as of 21:38, 12 January 2010

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


  • 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: VARPTR, DRAW, PLAY


Navigation:

Go to Keyword Reference - Alphabetical

Go to Keyword Reference - By usage