Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to call Object.Method from On Selection Bar command?
Message
From
02/01/2000 07:53:55
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to call Object.Method from On Selection Bar command?
Miscellaneous
Thread ID:
00311323
Message ID:
00311323
Views:
67
Hi,
I have bar of menu that may need to call method from my class. How could I do so if I don know the reference of the object (myvar = createobj("myclass")), however using THIS or any other ways to reference?

e.g.

myclass.mymethod1

DEFINE BAR 1 OF mypopup PROMPT "MyMethod"
ON SELECTION BAR 1 of mypopup **CALL MYCLASS.MYMETHOD2**


Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Next
Reply
Map
View

Click here to load this message in the networking platform