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?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement