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'

paul_kildayAsked:
Who is Participating?
 
moduloConnect With a Mentor Commented:
PAQed with points refunded (50)

modulo
Community Support Moderator
0
 
Ferruccio AccalaiSenior developer, analyst and customer assistance Commented:
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....
0
 
paul_kildayAuthor Commented:
sorry, but I found the problem
I was using ParamStr(0), it sould have been ParamStr(1).
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.