Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create Cursor then view in grid
Message
From
14/11/1999 08:50:55
 
 
To
13/11/1999 22:04:49
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00291048
Message ID:
00291074
Views:
19
Try and set the datasession to private for the form.

Does Grid1 have a recordsource by default?
If so, set it to nothing then set it to your cursor.

ThisForm.Grid1.RecordSource = ''
ThisForm.Grid1.RecordSource = "MyCursor"

>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!
Previous
Reply
Map
View

Click here to load this message in the networking platform