Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting cursor location in grid
Message
De
30/01/2007 10:53:53
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01190462
Message ID:
01190484
Vues:
16
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform