Link to home
Start Free TrialLog in
Avatar of paul_kilday
paul_kilday

asked on

TADOConnection EOleException

I’m trying to connect to Microsoft SQL 8.0 from Delphi 7 using a TADOConnection object.  When I pass a command-line parameter to the application I get this error.

Project boats.exe raised exception class EOleException with message '%1
could not be found'

Avatar of Ferruccio Accalai
Ferruccio Accalai
Flag of Italy image

it seems a syntax error in the parameter passing...

How do you pass this %1 ?

You can also test your parameter from ide choosing Parameters from Run tab and writing the parameter in parameter box....
Avatar of paul_kilday
paul_kilday

ASKER

sorry, but I found the problem
I was using ParamStr(0), it sould have been ParamStr(1).
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial