Simplest macro letter m

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("com.sun.star.frame.DispatchHelper")
dim args(0) as new com.sun.star.beans.PropertyValue
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

MANY THANKS!!!

The best explanation out there is in a tutorial: libreoffice-na.us - Diese Website steht zum Verkauf! - Informationen zum Thema libreoffice na.

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