Navigation:  ThinBASIC Modules > Tokenizer >

Tokenizer_Default_Char

Previous pageReturn to chapter overviewNext page

 

Description

 

Change a char default group giving char as string.

 

Syntax

 

n = Tokenizer_Default_Char(sChar, MainType)

 

Returns

 

Number. %TRUE if all ok.

 

Parameters

 

Name

Type

Optional

Meaning

sChar

String

No

A single char string

MainType

Numeric

No

Group to insert char into

 

Remarks

 

During startup, Tokenizer module set each ASCII table chars to a specific default group. With this function you can change default group for each 255 ascii chars.

For example "$" char by default belongs to Delimiter group. TO change it to belong to Alphabetic group use the following:

 

Tokenizer_Default_Char("$", %TOKENIZER_DEFAULT_Alpha)

 

Restrictions

 

See also

 

Examples