Hello!
I have such a code:
Sub k
oParEnum = ThisComponent.getText.createEnumeration
Do While oParEnum.hasMoreElements()
oPar = oParEnum.nextElement()
print oPar.getString
Loop
End Sub
It writes the text in writer line by line in a msgbox.
What I want to achieve is to get each line in a particular variable with particular name, so that I can write it alone when I want later in program.
Please, any advices and links would be of a great help!
MANY THANKS IN ADVANCE!!!
P.S. iF i have:
twinkle twinke
little star
How I
wonder
what u
are
I want to get:
a$="twinkle twinkle"
b$="little star"
c$="How I"
d$="wonder"
e$="what u"
f$="are"
P.s. 2 Please, how do I get lines separated in these posts?
Many thanks!!!
MANY THANKS IN ADVANCE- I am not able to google any cute advices in the net at the moment!
AND YOU ARE ALREADY NOT ABLE TO EDIT YOUR POSTS PROPERLY, NEXT TIME I DELETE UNREADEBLE POST INSTEAD OF EDITING FOR DUMP --- KAROLUS