Hi,
* 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.
The Type ... End Type is new to me, too.
I couldn't find any reference to this declaration in the BASIC Guide,
and not in the whole api.openoffice.org documentation.
Possibly the example at CreateObject is a typo? Did you check if the
example works as expected? Can you replace Type by Dim and vice versa?
Uwe
--
u...@openoffice.org - Technical Writer
StarOffice - Sun Microsystems, Inc. - Hamburg, Germany
http://documentation.openoffice.org/
http://wiki.services.openoffice.org/wiki/Documentation
http://blogs.sun.com/oootnt
http://user.services.openoffice.org/en/forum
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@documentation.openoffice.org
For additional commands, e-mail: dev-h...@documentation.openoffice.org