Comments
Comments can be introduced with rem
or with a quote character:
…
rem This is a comment
' So is this
…
Message boxes
sub main
dim answer as integer
answer = msgBox("Should we go now?", mb_yesno)
if answer = idyes then
msgBox "Let's go"
elseif answer = idno then
msgBox "Let's stay here"
else
msgBox "This is rather unexpected"
end if
end sub
Print
Print
opens a message box, too. Is there nothing like VBA's debug.print
in order to print messages to a console rather than a message box?
sub main
print "This opens a message box, too"
end sub
CreateUnoService
CreateUnoService
seems to be rather important function: it instantiates a Uno service (whatever this is) with the ProcessServiceManager (whatever this is).
A list of services (that can be instantiated?) is
here.
UNO stands for Universal Network Objects.