Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

container with method?

Status
Not open for further replies.

Keepontrying

Programmer
May 12, 2003
67
US
I create a class based on a container. Inside the container I added a new method. I have a combobox within the container, In the combobox click method I want to call my new method which I added. In the combobox in the click method I have the following

srchdata = alltrim(this.value)
Locate for assembly.assyid = srchdata
if found
this.mymethod
endif

when I drop my class onto a form. I click on my combobox I get a error message "Property mymethod is not found"

What is the proper way to make this call? Or is this even possible.

Thank for all your help
John
 
I got it to work. I had to use the this.parent statement.

Thank again
 
Hi John,

If you are using VFP7 or VFP8, as you key in the code, the intellisense should help you with the available properties and events. If that did not appear, you can think that you are doing something wrong.

So a watch... as you code will be a good idea.

You need to set intellisense on for that.

:)

____________________________________________
ramani - (Subramanian.G) :)
When you ask VFP questions, please add VFP version.
Merry Christmas & Happy New Year
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top