Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can CursorAdapter be disconnected?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01471214
Message ID:
01471242
Vues:
47
>>I noticed that you use code (unfamiliar to me):
>>
>>
>>* Create recordset
>>oRS = oCon.Execute(lcSql)
>>
>>
>>Is this (above) better approach than setting CA properties .DataSource and .SelectCmd?
>>
>>
>>*  example
>>.DataSource = CREATEOBJECT('ADODB.Recordset')
>>.SelectCmd = "select * from table"
>>
>>
>>>Detach the cursor before killing CA http://www.berezniker.com/content/pages/visual-foxpro/converting-ado-recordset-cursor-cursoradapter
>>>
>>>>
>
>As you see in Sergey's code, there is no other CA properties set.
>That code is just a replacement of the SQLEXEC(), but using ADO not ODBC.

First, thank you for your help. I understand now how his code works. But I am also curious; without CursorAdapter can VFP code do anything with the Recordset?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform