Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting cursor location in grid
Message
From
30/01/2007 10:53:53
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01190462
Message ID:
01190484
Views:
17
It is not my problem to get the company name, but I want to know the active cell (if its 'orders' I will get orders details and if it's 'income' I will get income details) - where is the user focus in the grid.
>>Hi all
>>I have a grid wich base on cursor something like this:
create cursor mycompny (company c(4),orders i, income i)
>>insert into mycompny values ('ABC',4165,1984)
>>insert into mycompny values ('DEF',986,1989)
>>insert into mycompny values ('GHI',198,873)
>>insert into mycompny values ('TRE',4853,8548)
>>select mycompny
>>brow
Now, I have down another grid base cursor for details - If the user hold in the top grid line2 in column orders I want to give the orders information for company DEF, if he hold in the top grid line3 in column income I want to give the income information for company GHI etc.
>>Can I get it?
>
>Just use MyCompny.Company field to get data for the details grid. It will use information from the record you're currently sitting on in the top grid.
Thank you
Chaim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform