Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code in Form Load
Message
 
 
To
22/07/2003 20:07:53
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00812595
Message ID:
00812600
Views:
12
>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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform