STRPTR

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > BuiltIn Functions > Memory handling and pointers >

STRPTR

 

Description

 

Returns the address of the memory block used to store data for a dynamic string variable.

 

Syntax

 

ptr = STRPTR(DynamicString)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

DynamicString

Dynamic string variable

No

Name of the dynamic string variable you want the address.

 

Remarks

 

Attention:only dynamic string variables are allowed.
For fixed-len string or fixed-len ASCIIZ strings use VARPTR in order to return variable address.

 

Restrictions

 

See also

 

STRPTR, VARPTR, POKE$, POKE, PEEK$, PEEK

 

Examples