Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to refresh CA
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01472702
Message ID:
01472705
Vues:
47
>>Hi,
>>
>>I am trying to refresh a cursor adapter after changing the value in .SelectCmd property. But something does not work.
>>
>>Here is my code:
>>
>>
>>cSqlSelectExpression = "select * from MyTable where 1=1"
>>*-- oConn is the connect object (already exist)
>>oRS = oConn.Execute(cSqlSelectExpression)
>>*-- ca_object is the CursorAdapter object already existing
>>ca_object.DataSource = oRS		
>>ca_object.CursorRefresh()
>>
>>
>>But when I check the resulting cursor it has no records.
>>
>>What am I missing? TIA.
>
>
>No, if you change SelectCMD you should run CursorFill() not CursorRefresh().

Thank you. But then what is the purpose of the CursorRefresh() method? When do you use it?
"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