Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Define a POPUP in a grid method
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Define a POPUP in a grid method
Miscellaneous
Thread ID:
00304356
Message ID:
00304356
Views:
40
To All

In the RightClick() method of a grid subclass I define a popup, and direct the seletion to call GridRowPop(), a method in the same grid, passing it the number of the bar seleted.

ON SELECTION POPUP GridRowPopUp THIS.GridRowPop(BAR())

When I run the form and right click the grid I am told THIS can only be used in a method.

I used the THIS word both above and below the line without a problem to define the prompts and so on. The prompts are on the menu when it pops up, but the selction bombs.

The same method works fine on a form class but the offending line is

ON SELECTION POPUP GridRowPopUp _SCREEN.ACTIVEFORM.GridRowPop(BAR())

I am trying to shift the method into the grid class level and away from the form class.

How should I say that line? Thanks

Al Allison
Next
Reply
Map
View

Click here to load this message in the networking platform