Rad:The manual describes it this way:
---8<---
TypeList
- TypeList is a case sensitive series of characters that define the type of each optional argument. Based on the type specified, KiXtart will convert the argument(s) to the correct type before calling the OLE function. This parameter can have the following values:
b Boolean
c Currency
D Date
i Short integer
I Long integer
o Object handle
r 4 byte real
R 8 byte real
---8<---
What the manual doesn't say is the code for a string is 's'.
So, an OLE function that takes three parameters (two strings and a boolean) would be coded like this:
$rs = olecallfunc ( $handle, "function", "ssb","str1","str2","1")
I like to use only strings when possible. Most well-written Automation servers will convert variants for you anyway, so that any number (byte,word,long) can be specified as a string.
The other thing is that KiX does a run-time check of the number of "types" in your list and the actual number of parameters that you provided - this is a good thing. But just remember that KiX has no way of knowing how many parameters the Automation server is actually expecting.
How's the testing going ?
Shawn.
[This message has been edited by Shawn (edited 17 July 2000).]