Please enable JavaScript to view this site.

thinBasic Help Manual

Navigation: ThinBASIC Modules > Tokenizer

Tokenizer_GetNextToken

Scroll Prev Top Next More

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

Description

 

Returns the next token from a string buffer.

 

Syntax

 

pKey = Tokenizer_GetNextToken(Buffer, CurrentPosition, TokenMainType, Token [, TokenSubType])

 

Returns

 

Number.

In case token found is a user key, returned number is a pointer to user key.

 

Parameters

 

Name

Type

Optional

Meaning

Buffer

String variable

No

Buffer containing the string to be tokenized.
Parameter passed BYREF so a variable is needed and not a string expression.

CurrentPosition

Numeric variable

No

Current Tokenizer position.

Parameter passed BYREF so a variable is needed and not a numeric expression.

TokenMainType

Numeric variable

No

Token main type. See Tokenizer equates for main type reference.

Parameter passed BYREF so a variable is needed and not a numeric expression.

TokenVariable

String variable

No

Parameter passed BYREF so a variable is needed and not a string expression.

TokenSubType

Numeric variable

Yes

Token sub type. This information is relevant only for user defined keys. See Tokenizer_KeyAdd function.

Parameter passed BYREF so a variable is needed and not a numeric expression.

 

Remarks

 

Important: all parameters passed to this function must be variable and not expressions.

They must be variable because passed by reference in order to get back information.

 

Restrictions

 

See also

 

Examples

 

 

 

 

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software