02-12-2014, 07:01 PM
My goal was to store a bunch of code as an array of lines - each array element would hold a line of code.
I accidentally found a very useful function to solve this problem
. See below
I accidentally found a very useful function to solve this problem
. See below;select all
'Ca ;;highlight all
str htmltextboxsourcecode
htmltextboxsourcecode.getsel
clo
ARRAY(str) arrayoflines
int i = 0
For each line:
str s
str lines = htmltextboxsourcecode
arrayoflines.create(numlines(lines))
foreach s lines
if(!s.len) continue
arrayoflines[i] = s
out arrayoflines[i]
i + 1 ;;increment count by 1