Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADO error.
Message
From
13/11/2001 14:24:47
 
 
To
13/11/2001 13:09:17
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00580990
Message ID:
00581063
Views:
20
>If any of you out there are useing ADO please give me the answer to this. I am doing a test to run a stored procedure through Fox using the following command and.
>
>Oconnection = createobject("adodb.connection")
>
>oConnstr = "Provider=SQLOLEDB; user ID=sa; password = sql001;"
>oConnstr = oConnstr + "Initial catalog=bmsdev2; Data Source = dakota2"
>Oconnection.ConnectionString = oConnstr
>
>oConnstr = "Provider=SQLOLEDB; user ID=sa;"
>oConnstr = oConnstr + "Initial catalog=bmsdev; Data Source = dakota2"
>Oconnection.ConnectionString = oConnstr
>
>"Here is where I create my parameter"
>
>.Parameters.Append .CreateParameter("@praclocid", 129, 1, 9, "9697978")
>
>I am getting the error variable "ADCHAR" not found.
>
>Now 'adChar' is one of the parameters that ADO uses, why would I get thia error?


William,

adChar is a constant that is not defined (by default) in VFP. It has the value of 129. adParmInput falls into the same boat, see changes above.

Perhaps there is a header file that defines these values, but hard coding will work. Look up dataTypeEnum in MSDN for more information.

I didn't check the rest of your work, because I'm not well versed in ADO...

HTH,
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform