Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADO error.
Message
De
13/11/2001 14:24:47
 
 
À
13/11/2001 13:09:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00580990
Message ID:
00581063
Vues:
21
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform