StringField(String$, Index, Seperator$ [, StartPosition])

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

StringField(String$, Index, Seperator$ [, StartPosition])

Post by nco2k »

thanks for allowing multicharacter comparison in StringField(). another great improvement would be the introduction of an additional StartPosition parameter. :)

c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
User avatar
STARGÅTE
Addict
Addict
Posts: 2227
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: StringField(String$, Index, Seperator$ [, StartPosition]

Post by STARGÅTE »

i think
StringField(String$, Index, Seperator$ [, StartPosition])
is the same like
StringField(Mid(String$, StartPosition), Index, Seperator$)
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

Re: StringField(String$, Index, Seperator$ [, StartPosition]

Post by nco2k »

yep, thats actually what im doing right now. :) it is however slightly slower because of the additional function call and bound checks.

c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
Post Reply