Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code in Form Load
Message
 
 
À
22/07/2003 20:07:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00812595
Message ID:
00812600
Vues:
13
>Hi Sergey,
>
>>What line of code you posted gives this error? How do you connect to SQL >Server (Views, SPT, ActiveX Data Objects)?
>
>I'm connecting with ADO, but the code works if i put it into the Form Load Event. If i move it to a prg or to my base class form load event it doesn't work, i think i can't validate to sql server
>
>Joao Batista

Sorry, but I've to repeat my question. What line of code you posted gives the error?
In addition you can analyze Errors collection of the ADO connection object to find out detailed info about errors. Something like
lcErrMsg = ""
FOR Each loErr IN oCon.Errors
	lcErrMsg = lcErrMsg + loErr.Description + ;
	 " ("  + Transform(loErr.Number) + ")" + ";;"
ENDFOR
? lcErrMsg
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform