Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making sure that a record in grid is selected
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Making sure that a record in grid is selected
Miscellaneous
Thread ID:
01638388
Message ID:
01638388
Views:
83
UPDATE: Found solution: using method AfterRowColChange(). The nice thing about this method is that it does not fire if grid has no records.

Hi,

I have a form with a PageFrame and 3 tabs. Each tab/page has a grid bound to a different table. Think of it as:
tab 1 - Grandparent
tab 2 - Parent
tab 3 - Child.

Typically user clicks on a row in tab1 grid, then goes to tab 2 grid, selects a Parent. Then they can go to tab 3 and select a child.

But I am thinking of a case where user may not select a Parent but jump from Grandparent to Child. Therefore, when user clicks on the Tab 3 (Child), I want to check that he/she clicked and selected a row in tab 2 grid. And there could be a case where the user has a Grandparent record but not yet a Parent.
How would you suggest to check if, when clicking on Child tab, a Parent exists and is selected?

TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Reply
Map
View

Click here to load this message in the networking platform