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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only