Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid, how to know its bound cursor
Message
From
19/01/2003 07:07:32
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00743210
Message ID:
00743243
Views:
14
Hi!

You can take out cursor name from ControlSource os the grid columns. It is always in form of "cursorname.fieldname" for all columns after you re-assign the RecordSource property for grid.

BTW, take into account that "RecordSourceType" should be changed before 'RecordSource', if you change it at all. If it is always "4" from start (set in design time), no need to change it.

>I want to know the bounded cursor of and Grid, this grid will be in a custom Class, it could be easy if I check the RecourdSource property, but I want to know the cursor binded when I'm using RecordSourceType = 4. Is there an easy way?, or must I have to split the RecordSource? if I must do it which event must I check?
>
>The Grid class would pay attention in Dynamical re-asigment of RecordSource:
>
>
>   WITH ThisForm.eGridSelection && My custom Grid
>         .RecordSource = "SELECT * from Customer INTO CURSOR "+SYS(2015)
>         .RecordSourceType = 4
>   ENDWITH
>
>
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform