splitstr example mistake?

Report any Hollywood bugs here
Post Reply
Bugala
Posts: 784
Joined: Sun Feb 14, 2010 7:11 pm

splitstr example mistake?

Post by Bugala » Tue Jan 22, 2019 10:56 am

Not an actual bug, but thought for a while there was a bug in this example code of SplitStr as it didnt seem to work:

Code: Select all

array, c = SplitStr("AmigaOS3|MorphOS|AmigaOS4|WarpOS|AROS", "|")
For k = 1 To c Do NPrint(array[k - 1])
Until I realised you have used NPrint instead of Debugprint. a Mistake?

User avatar
airsoftsoftwair
Posts: 3108
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: splitstr example mistake?

Post by airsoftsoftwair » Wed Jan 23, 2019 5:30 pm

No, the examples often use NPrint() and Print() instead of DebugPrint(), so that's fine.

Post Reply