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 variable's memory 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 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.
* When using this function with DRAW or PLAY strings, use an = sign.




''Example:'' Using the function to change a Turn Angle value in DRAW.
''Example:'' Using the function to change a Turn Angle value in DRAW.
{{CodeStart}}
{{Cl|DRAW}} "TA=" + {{Cl|VARPTR$}}(angle)
{{CodeEnd




::DRAW "TA=" + VARPTR$(angle)
''See also:''  
 
 
 
''See also:'' [[VARPTR]], [[DRAW]], [[PLAY]]


* [[VARPTR]]


==Navigation:==
* [[DRAW]], [[PLAY]]


[[Keyword_Reference_-_Alphabetical|Go to Keyword Reference - Alphabetical]]


[[Keyword Reference - By usage|Go to Keyword Reference - By usage]]
{{PageNavigation}}

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) {{CodeEnd See also:


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