Skip to main content
Suggested answer

find a new line in a string

editSubscribe (0) ShareShare
Posted on by 137


As i am new to BC programming I am unsure of the correct syntax to find a new line in Text string. Can anyone advise?

As a test i am using the code to find the first '.'  (this works perfect!)
textstring := 'This is line1. this is line 2. this is line 3';
crpos := strpos(longtextleftover, '.');
but i want to change this to a new line.
textstring := 'This is line1
this is line 2
this is line 3';
crpos := strpos(longtextleftover, ???????? );

Any idea's appreciated. If it's a simple answer I apoloogise for my lack of knowledge in advance.
Thanks Neil.