Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CursorAdapter
Message
From
22/11/2002 00:19:08
 
 
To
21/11/2002 16:49:07
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00725086
Message ID:
00725627
Views:
10
From what I read, if you set DataSourceType = 'ADO' and set DataSource to a reference of your record set, and call CursorFill it will use the existing record set... is that not the case?

BOb


>I tried this, but if I create the record set by any other method than the Autofill and then call Autofill, it fails.
>
>I know this sounds odd, what I am trying to do, but we create our recordsets using a COM object that is on a resource pooling server, from all of our front end apps. I need to convert the recordset AFTER it already exists.
>
>
>
>>Hi Tina,
>>I think you could do that by using:
>>
>>form.bindcontrols
>>cursoradapter.autoopen
>>
>>set form.bindcontrols=.f., put a "nodefault" in cursoradapter.autoopen (or use DE.autoopentables).
>>At that time (when the form runs) you have the object created but no cursor and no data.
>>Calling cursoradapter.cursorfill will gets data and setting form.bindcontrols=.t. will bind controls (just tried on a dummy form and seem works).
>>
>>HTH
>>
>>Franco
>>
>>>I have been testing the CursorAdaptor class, and am loving it (after years of using rsTo2DBF, it's a relief...).
>>>
>>>Does anyone know if there is a way to NOT open and pull the ADO record set - to simply attach an existing recordset to the object and then have it turn it into a VFP cursor?
Previous
Reply
Map
View

Click here to load this message in the networking platform