Sorting Text by textStyle.
Richmond Mathewson
geradamas at yahoo.com
Sun Nov 30 16:39:16 EST 2008
Um, probably reinventing the wheel here. Notwithstanding that, just tried this:
put the number of chars in fld "f1" into XCHARS
repeat with XX=1 to XCHARS
if the textStyle of char XX of fld "f1" is italic then
put char XX of fld "f1" after fld "f2"
end if
end repeat
where field "f1" contained a large text of which about 50% was italicised.
It worked.
Mind you, still didn't tell me how many paragraphs field "f1" contained.
sincerely, Richmond Mathewson.
____________________________________________________________
A Thorn in the flesh is better than a failed Systems Development Life Cycle.
____________________________________________________________
More information about the use-livecode
mailing list