Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Basics - Return Cell Value
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00170839
Message ID:
00170850
Views:
13
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform