Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create Cursor then view in grid
Message
De
15/11/1999 06:21:19
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
13/11/1999 22:04:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00291048
Message ID:
00291178
Vues:
21
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform