Hi, On Tue, Oct 15, 2013 at 02:09:28AM +0200, Vladislav Stevanovic wrote: > Hello, > As I can see, there is a lot of people who are using BASIC for macros. And > I too. > Problem is next: does anybody developing Basic? > Problem 1: for all who want to deal with characters outside of English > language we have big problem, for example, with print function. I can not > export Cyrillic characters.
Looking at this example, there are some bug, please open a bug report:
Sub Main
Dim aLines()
aLines = Array(_
"Мой дядя самых честных правил,",_
"Когда не в шутку занемог,",_
"Он уважать себя заставил",_
"И лучше выдумать не мог.",_
"Его пример другим наука;",_
"Но, боже мой, какая скука",_
"С больным сидеть и день и ночь,",_
"Не отходя ни шагу прочь!",_
"Какое низкое коварство",_
"Полуживого забавлять,",_
"Ему подушки поправлять,",_
"Печально подносить лекарство,",_
"Вздыхать и думать про себя:",_
"Когда же черт возьмет тебя!" _
)
Dim n%
Dim s$
For n = 0 To Ubound(aLines)
s = s + aLines(n) + Chr(13)
Next
MsgBox s, 0, "Пушкин, Евгений Онегин"
print s
End Sub
> Problem 2: This is an office suit. Problem is when I want export some data
> in a brand new .xml document. I can not create this xml document without
> meta files in zipped file.
I don't get this, can you reformulate it? Are you trying to write
a plain XML file, or an ODT file, or a zip file, or ...?
In any case, I would use the API, even if writing the code in Basic,
instead of Basic functions (that is, do not use print to write to
a file, use the API from the com.sun.star.io module).
Note: there is a dedicate mailing list for API questions
[email protected]
Regards
--
Ariel Constenla-Haile
La Plata, Argentina
pgpLCn2GtInTW.pgp
Description: PGP signature
