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'
Project boats.exe raised exception class EOleException with message '%1
could not be found'
ASKER
sorry, but I found the problem
I was using ParamStr(0), it sould have been ParamStr(1).
I was using ParamStr(0), it sould have been ParamStr(1).
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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....