[PB4] Split() and Join() commands

Share your advanced PureBasic knowledge/code with the community.
GJ-68
User
User
Posts: 32
Joined: Sun Jun 23, 2013 1:00 pm
Location: France (68)

Re: [PB4] Split() and Join() commands

Post by GJ-68 »

@wilbert

Sorry but your updated code is wrong, you must not increment the separator counter if there is no match.
The line 'i + 1' must be inside the 'If...Else' block.
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3942
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: [PB4] Split() and Join() commands

Post by wilbert »

GJ-68 wrote:Sorry but your updated code is wrong, you must not increment the separator counter if there is no match.
The line 'i + 1' must be inside the 'If...Else' block.
You're right :oops:
Windows (x64)
Raspberry Pi OS (Arm64)
Post Reply