Hi, to pass arguments the way you want it should be enogh to just list
them, first the name and then the value. In your case that should bve as
follows:
Zuleitungszeile "myfirstArg", "val1", "mysecondArg", val2
not all types can be used, at the moment the following mapping is used:
Basic Types: SbxINTEGER SbxBYTE SbxUSHORT SbxINT SbxUINT SbxSINGLE:
C++ Type: USHORT
Basic Types: SbxLONG SbxULONG SbxLONG64 SbxULONG64 SbxDOUBLE:
C++ Type: ULONG
Basic Types: SbxSTRING SbxCHAR:
C++ Type: String
Basic Type: SbxBOOL:
C++ Type: BOOL
Best Regards
Gregor
Christoph Lutz schrieb:
Hi,
In my testcase I would like to call a dispatch and pass arguments to it.
For example my dispatch is defined in a sid-file like this:
Zuleitungszeile sym:wollmux:Zuleitungszeile
in my testcase I would like to call something like this:
Zuleitungszeile#myfirstArg=val1?mysecondArg=val2
which leeds the testtool to perform a dispatch call on the
dispatch-object (specified by the current context) with the URL
"wollmux:Zuleitungszeile" and the PropertyValue[] Arguments that
contain the mapping myfirstArg->val1, mysecondArg->val2
disp.dispatch([in] ::com::sun::star::util::URL URL,
[in] sequence< ::com::sun::star::beans::PropertyValue > Arguments );
Is it possible to specify arguments for dispatches? Which is the
correct syntax for that?
best regards,
Christoph
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]