Hi Al,
>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.
In the method where you actually show the popup, put this before hand:
PRIVATE poThis
poThis = This
Then use "poThis" instead of "This". Does that help? Also, for popups I use Doug Hennigs approach which involves the FFC class and is described in one of his FoxTalk articles (try the article index at
www.pinpub.com/foxtalk/ for which one).