For Programmers: Free Programming Magazines  


Home > Archive > Tcl > November 2007 > passing arguments to an word makro (tkom)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author passing arguments to an word makro (tkom)
Matthias Meier

2007-11-22, 7:13 pm

Hello,

I have an word makro

Public Sub getArgs(Optional argList As Variant)
If IsMissing(argList) Then
MsgBox "No Args"
Else
MsgBox "Args: " & argList
End If
End Sub


and run this via tcom:

$handle Run getArgs

But how do I pass arguments to the makro?

$handle Run getArgs "test"
wrong # args: should be "Run MacroName"

tcom version is 3.9


Any ideas?

Thanks for all Help!

Matthias
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com