168 An oleAuto variable cannot be converted to type string

Problem: Getting error "An oleAuto variable cannot be converted to type string."

When running a form containing ObjectPAL code to handle oleAuto variables.
Date: 17 February 1997
Versions: P7 W95/NT and later.
Detailed description:
I am using Pdox 7/95 trying to use the search method attached to an Extra!/95 session object. The code looks something like this:
var
   rc anytype
   oaExtra oleAuto
endvar
...
rc=oaExtra.search(text)
I get a run time error that an oleAuto variable cannot be converted to type string. After dinking around it looks to me like ObjectPAL is going to its built in search method rather than using the session object's method.

Caused by:
Name conflict between ole server method and a Paradox method.
Solution by: Michael J. Clifford
To tell ObjectPAL to use the external method rather than the internal method, see the use of the ^ character in the OLE section of the OLE manual.

To index