Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Popup calling a method question...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00383607
Message ID:
00383620
Views:
18
>Hi all,
>
>I have a ListBox that I have classed and it has some code in the RightClick event:
>
>LOCAL loThisObj
>loThisObj = THIS
>DEFINE POPUP lpClassList SHORTCUT RELATIVE FROM MROW(),MCOL()
>DEFINE BAR 1 OF lpClassList PROMPT [Rename]
>DEFINE BAR 2 OF lpClassList PROMPT [Delete]
>
>ON SELECTION POPUP lpClassList PopProc(Prompt(), Popup(), loThisObj)
>ACTIVATE POPUP lpClassList
>
>I want all the code to be contained in the listbox (or form). But I can't get it to work unless I have a .prg called PopProc.
>
>Since I'm creating a POPUP, I can't use THIS.{object}, and I've tried a few different ways of calling a method in either a form OR a container that this listbox is a member of.
>
>Any help or suggestions?
>
>Thanks,

If your PopProc is an external program, you can call the form and its asssociated control inside by calling the name of the form:
INVOICEFORM.Command1.Click()
See to it that the external and property name of the form are identical (INVOICEFORM) and is publicly declared.

HTH
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Reply
Map
View

Click here to load this message in the networking platform