Ask Your Question

simplest macro letter m [closed]

asked 2014-05-16 19:41:16 +0200

altair gravatar image

updated 2014-05-16 20:01:29 +0200

Hello! I wrote the most simple macro, writing just one letter. Here is its code:

sub letter_m
dim document as object
dim dispatcher as object
document  =This.Component.CurrentController.Frame
dispatcher = createUnoService("")
dim args(0) as new
args1(0) .Name = "Text"
args1(0) .Value = "Value"
dispatcher.executeDispatch(document, " .uno:InsertText", "", 0, args1())
end sub

Please, what meant args1(0)

p.s. Any links about this would be extremely helpfull! I appologise, cause I am a beginner, and did not manage to google sth for my level


edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-02-22 17:35:11.291946

1 Answer

Sort by » oldest newest most voted

answered 2014-05-17 07:04:33 +0200

mahfiaz gravatar image

The best explanation out there is in a tutorial:

In short it is used to compile a list of arguments to be passed on at once in the following dispatch call.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-05-16 19:41:16 +0200

Seen: 73 times

Last updated: May 17 '14