On Wed, Oct 5, 2011 at 10:01 AM, Alan Bourke <alanpbou...@fastmail.fm> wrote: > I'm connecting to SQL Server 2008 from VFP9 SP2 using the SQL Server > Native Client 10. I'm using SqlStringConnect() > > Which all works fine, except when the connection fails for whatever > reason. When this happens the client throws up a big message box with > the error details and then a dialog so a connection can be specified > manually. It seems that if I was using .NET I could create an event > handler to handle this more tidily. What are my options in VFP? try catch(SQLException sex) messagebox.show(sex.Message)
-- Stephen Russell 901.246-0159 cell _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/cajidmykmosm0fscepvxjdakdg4460t8aacjtektsg496n7o...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.