Hi Ennio-Sr,
Ennio-Sr wrote:
I started reading the Star Basic Guide and tried to run one of the
examples I found there; but I'm under the impression to have picked the
wrong one for a start, as there is no way to make it run!
This example was taken from p. 102 of the Italian version:
[CUT]
I change something, according to OOo API (and the loop):
Sub test_search
'------------------------
Dim SearchDesc As Object
Dim Doc as Object
Doc = thisComponent REM StarDesktop.CurrentComponent
SearchDesc = Doc.createSearchDescriptor
SearchDesc.SearchString = "test"
SearchDesc.SearchSimilarity = True
SearchDesc.SearchSimilarityAdd = 2
SearchDesc.SearchSimilarityRemove = 2
SearchDesc.SearchSimilarityRelax = False
Found = Doc.findFirst(SearchDesc)
do REM while Found
Found.CharWeight = com.sun.star.awt.FontWeight.BOLD
Found = Doc.findNext(Found.End,SearchDesc)
Loop until IsNull(Found)
end sub
Searching the ML I saw a similar post by Daniel Carrera ("The StarBasic
guide is boken" - 12 Aug 2004) which quoted a different example; so my
question is: what should I start reading (methodically) to basic Basic?
May be that StarBasic is not completely the same thing as OOBasic ;-)
I don't know too much on guides, I listen a lot of good word on the
macro document of Andrew Pitonyak, in alternative you can search in the
site www.oooforum.org (there are examples and problems with solutions).
I started from this site and from the "VbaStarBasicXref" guide.
Regards,
Emanuele.
P.S.
Thank you for help on the other topic, now the code means something
also for me!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]