Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use ADO in Visual FoxPro
Message
 
À
08/09/2005 00:49:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
Database:
MS SQL Server
Divers
Thread ID:
01047600
Message ID:
01047669
Vues:
9
You'd need to convert the recordset into a VFP cursor. I do it using CursorAdapter, like this:
  oCA= CreateObject("CursorAdapter")
  oCA.DataSourceType=[ADO]
  oCA.Alias=[myCursor]
  oCA.CursorFill(,,,myADORecordSet)

   *--- Then
    Grid.RecordSource = "myCursor" &&&& Instead of Grid.ControlSource = "O_recordset"
HTH,

Enmanuel

>I can connect to SQL Server by ADO Connection
>When I have a recordset, and I want to show it on a grid.What can I do?
>I have tried these code:
>
> Grid.ControlSource = "O_recordset"
> Grid.Refresh
>
>But nothing happens
I'm a mixture of Albert Einstein and Arnold Schwarzenegger. The only trouble is that I got Einstein's body and Schwarzenegger's brain
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform