Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to refresh CA
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01472702
Message ID:
01472704
Views:
61
>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().
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform