Ariel Constenla-Haile wrote:
* in
http://wiki.services.openoffice.org/wiki/Documentation/BASIC_Guide/Loops#For_Each
** the variable holding the value of each element in the loop is not declared,
this will give an error when Option Explicit is used on the module
Quite right, I fixed that.
** the whole example does not work (at least on DEV300_m38), is the example
wrong or is this an application issue?
Works fine under 3.0.0 release; the loop executes 36 times.
* explanation about how to declare new types is AFAIK missing (I couldn't even
find it in the office Help):
Type aMenuItem
aCommand as String
aText as String
End Type
Sub Main
Dim maItem as New aMenuItem
With maItem
.aCommand = ".uno:Copy"
.aText = "~Copy"
End With
MsgBox "Command: " & maItem.aCommand & Chr(13) &_
"Text: " & maItem.aText
End Sub
The only mention I could find of "Type" in the OLH was under the
*CreateObject Function[Runtime]*, which can be found in the index, but
not in the TOC alpha list of runtime stuff (there's another one for
Uwe). Thanks for bringing this to my attention: the command is brand-new
to me.
I think I'll start the new page with Type, though the explanation will
be quite brief.
I guess there are other things I can recall now.
Anything else you can think of, let me know (here is fine). The Basic
Guide is kind of a pet project of mine. /tj
--
T. J. Frazier
Melbourne, FL
(TJFrazier on OO.o)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@documentation.openoffice.org
For additional commands, e-mail: dev-h...@documentation.openoffice.org