Page 1 of 1

PureBasic have Tokens?

Posted: Mon Jan 26, 2004 11:59 am
by Armoured
Hi
PureBasic can extract tokens from a string?
In PureBasic there is the support for different characters set string encoding like ISO-88591 or the UTF-8 formats?
I think it's an important feature for many applications. :?


Thanks.

Posted: Mon Jan 26, 2004 3:56 pm
by ricardo
From PB help file:

StringField()

Syntax

Result$ = StringField(String$, Index, Delimiter$)
Description

Returns the string field at the specified index. 'Delimiter$' is the character used to split the string (only 1 char long). The first 'Index' position is 1.

Example:
For k=1 To 6
Debug StringField("Hello I am a split string", k, " ")
Next

Supported OS

Windows, AmigaOS, Linux