Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create Cursor then view in grid
Message
From
15/11/1999 06:21:19
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
13/11/1999 22:04:49
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00291048
Message ID:
00291178
Views:
20
>Can I create cursor then display into the grid
>
>for example :-
>In the form1.Init(), I put my code :-
>select code,descr from product order by code into cursor mycursor
>
>i set the grid1's recordsource is mycursor and the column1 = code,
>column2 = descr
>
>When I run it, first time have not effect,not thing is displayed, when I run it second time, It have data displayed.....
>How do i display the data at the first time ? then i destoyed it when i finished using it.
>
>Any one can help me on this ?
>
>Thanks!


Just put an empty grid control on form. Then set :
-Recordsourcetype as SQL
-Recordsource "select code,descr from product order by code into cursor mycursor"
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
Reply
Map
View

Click here to load this message in the networking platform