Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Requerying Grids
Message
From
29/05/2001 05:43:56
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
29/05/2001 05:28:15
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00512104
Message ID:
00512111
Views:
10
>Hi
>
>What is the best way to requery a grid with a RO cursor in it, whenever I requery the cursor, the grid is just blank.
>
>Any ideas?
>Thanks
>Kev

Kevin,
If cursor is RO then set RecordSourceType = 4 (SQL) and put your SQL as a string to RecordSource. hen all you need is grid.refresh. Otherwise at least do :
.RecordSource=''
* update cursor
.Recordsource = 'cursorname'

The grid might go blank with the first option if your where clause points to afield that's not indexed in base table.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform