Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Basics - Return Cell Value
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00170839
Message ID:
00170850
Vues:
15
>How can I get the value of a cell that the user double-clicks on?
>I need to parse that input but I can't find a simple property to check.

Hi Steve,

It may be a little complicated because you are going to have to work with the dblClick event of each control in the grid, but the basic approach is to add a property to your grid called something like holdDblClickValue (or it may be a memvar).

When the user dblClicks on a control in the grid, the dblClick event for the cotnrol stores the value of the control to holdDblClickValue, e. g.
*-- MyControl.DblClick()
DODEFAULT()
WITH this
    *-- .parent.parent is the grid
    .parent.parent.holdDblClickValue = .value
ENDWITH

RETURN
regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform