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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Methods /properties

Status
Not open for further replies.

ivatanakoo

IS-IT--Management
Oct 9, 2014
23
PH
i am new in creating new properties or methods,
i m done creating method but i cant find the method i created in my property window to code it.

please help..
 
You probably created it as a property instead of a method (I *still* do it all the time), or you have the wrong object selected in the object drop down in the property sheet.
 
Are you aware that the names of all methods and properties that you create yourself are in lower case, even if you typed it in mixed case when you created it? So, if you named a property OutputFile, it will in fact be named outputfle.

As a result, all custom properties and methods get sorted to the bottom of the properties window (which is in strict alphabetical order). So the solution might be as simple as scrolling down to the bottom of that window in order to find your custom entries.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
When you create a method / property, press the Add not the Close button.

Respectfully,
Vilhelm-Ion Praisach
Resita, Romania
 
i have already done that sir mikelewis but nothing there,
but if i go to the form tab and edit property/method,it is there..
 
If you can find it in the Form MENU's Edit property/method dialog, then it's present and you just can't find it.

As others have said, custom properties sort to the very bottom of the list in the property sheet. It should be present on the All or Other tab (if it's a property) or the Methods tab if it's a method. Are you looking on the right tab?
 
And are you looking at the right object? If you edit a form you can only add methods/properties to the form, even if you select a control inside the form, the new method will not be added there, but on the form level. Any designer mainly designs the outmost object, inner objects are added as they are and not extensible, that would need a new class of the subobject you want to extend.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top