PureBasic have Tokens?

Everything else that doesn't fall into one of the other PB categories.
Armoured
Enthusiast
Enthusiast
Posts: 365
Joined: Mon Jan 26, 2004 11:39 am
Location: ITALY
Contact:

PureBasic have Tokens?

Post 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.
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post 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
ARGENTINA WORLD CHAMPION
Post Reply