Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I get onto the VB forum -- and use ADO with VFP d
Message
From
24/12/2000 21:01:40
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00429555
Message ID:
00456718
Views:
33
>>Connection has errors collection and error object. Sample VB < bg > code from ADO210.chm :
>> On Error GoTo ErrorHandler
>The COM will not build with an ON ERROR. There is a GETCOMRETURNERROR(), but I don't think it bites until after the interupt. The RecordSet.Open interupts when the command/stored procedure request is no good. The ADODC 'container' has an error method that intercepts SQL errors, then allows COM to set it's own return flags and .NULL. the record set. For ADODB, the GETCOMRETURNERROR advertises to cancel COM processes, and return to the client, but how to do, how to do? I am going to just set an ERROR method for each object in the com and see if any of them get hit.
>
>Thanks for the code.
>Terry

Terry,
If ADODC has it why not use it. In the thread I mentioned it was reported to fail on other site but I have many working samples using it (I never tried it with COM though).
I think the key is your signature :)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform