FutureBasic Logo

<<    Index    >> FutureBasic 5

pstr$   statement



Syntax:
pstr$(addressVar&) = string$

Description:
This statement changes the value of addressVar&, setting it to the address of string$. addressVar& must be a long-integer variable or a pointer variable; string$ must be a string variable or a literal string in quotes.
If string$ is a string variable, the pstr$ statement is equivalent to this:
   addressVar& = @string$
If string$ is a literal string in quotes, then addressVar& is set to an address in FutureBasic's heap where the literal string is stored. The pstr$ statement is the only way to obtain the address of a literal quoted string.

Note:
The pstr$ keyword can also be used with the read statement, to obtain the address of a string specified in a data statement.

See Also:
pstr$ function; read