Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MROW() MCOL() from a grid
Message
From
23/07/2003 16:42:31
 
 
To
23/07/2003 16:24:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00812838
Message ID:
00812933
Views:
42
>>>I have a shortcut that I want to run from rightclick on a grid. The grid is part of a form that I run with 'DO FORM '. The problem is that MCOL(),MROW() are returning the mouse position from the main FOXPRO window. I want the popup to show up right next the cell on the grid that was right clicked.
>>>
>>>How do I pass the mouse position from the grid?
>>>
>>>I appreciate any help,
>>>Larry Morelli
>>
>>You can pass a parameter to both MROW & MCOL saying what window you are interested in. Since you are in a form you should be able to MROW(THISFORM.Caption) and MCOL(THISFORM.Caption)
>
>That didn't work. I get an error "Window 'Dispatch search' Has Not Been Defined". 'Dispatch Search' is the caption on my form. Do I have to create a window and run the form in it?
>
>Thanks for any help,
>Larry Morelli

Sorry sometimes it works with caption sometimes not. When it doesn't work with caption you need to change it to name. MCOL(THISFORM.Name)
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Previous
Reply
Map
View

Click here to load this message in the networking platform