From: Henry on
Karl-Heinz

o := OleAutoObject { "YourProgID" }
Yes. This helped.

Many thanks
Henry

From: Karl-Heinz on
Henry,

still interested why the generated code doesn�t work <g>. Following the
error msg about a missing param, i assume that maybe iMemberID contains the
wrong number, and therefor it�s pointing to another method ...

....
oMethod:iMemberid := 14
....

You can verify the number when you open via oleview.exe the dll/ocx that
contains the class. When you browse the content you should notice that each
method etc. has an corresponding [id]-entry. Your "OpenPatient" [id]-entry
should look like:

....
[id(0x0000000e), helpstring("method OpenPatient")]
....

Note: ( hex ) 0x0000000e == ( dec ) 14


regards
Karl-Heinz