Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How Do I Display Cursor in a Grid
Message
From
28/12/2001 07:59:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
28/12/2001 00:50:55
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00598679
Message ID:
00598738
Views:
18
>Good Night,
>I am writing application which assigns supervisors to staff members within their department.
>
>I created a form which display personal data for the supervisor and a command button which when click will open another form with a grid displaying all staff members of that department and supervisor assigned.
>
>From this grid you can re-assigned supervisors.
>I entered the Query (which output to a cursor) in the form's INIT event and entered the cursor name as the grid control source but this doesnot work.
>
>Is there any one who can guide me through process.
>
>Thanks in advance
>
>P.Ghervis

Peter,
* Form.init
lparameters tuCode
with this.Grid1
 .RecordsourceType = 4 && SQL
 .RecordSource = 'select * from myTable where myCode = '+trans(tuCode)+;
 ' into cursor crsGrid'
endwith
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