Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing ADO connection to COM+
Message
From
29/11/2001 22:39:58
Bob Tracy
Independent Consultant
Driftwood, Texas, United States
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00587234
Message ID:
00587824
Views:
27
Kurt,

You still need to create an instance of an ADO connection. So far, all you have done is declare a variable name. Add:

loConnection = CREATEOBJECT('ADODB.Conncection')

then, set up any other connection properties you might need.

David's suggestion has the same problem: LOCAL oConnection AS ADODB.Connection does not create an instance of the object, it types the variable so it can be used in IntelliSense. Made that same mistake myself :) HTH
Bob Tracy

Never engage in a battle of wits if you're only half armed.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform