I have visited this ng before with great success always getting comprehensive explanations. I started about 3 months ago and was active for about 2-3 weeks. I then switched to C#, C++ and SQL Server and I found the atmosphere in those groups much less hospitable than here. You guys are great. I got my infusion of knowledge at that time that allowed me a jump start.
Now I am doing some FoxPro stuff again by necessity. I am trying to implement a Microsoft treeView OLE control v6.0. The MSDN help pages are atrocious on this subject and I cannot make head and tail out of them.
Anyway, what I did was to try to copy as much code as I could from this sample:
C:\Program Files\Microsoft Visual FoxPro 9\samples\solution\ole\bidtree.scx: Add and Remove Items in a TreeView Control.
It appears it is using a method that is not recognized by VFP9: newKey(). It is also not documented in MSDN help as a separate method, however, I see it in the browser Form->All or Form->Methods. There are also other methods not elsewhere described: checkbuttons, openDBF, refreshCombo, and verifyTableStructure.
They appear to be user-defined methods. Is it true
How can I set up a user-defined method I can AddProperty, addObject but not addNewMethod.
The only explanation for all this I found on this page:
Add and Remove Items in a Treeview Control Sample
Thanks.

newKey() method not found
NatalieE
beto81
>> They appear to be user-defined methods. Is it true
True !
>>How can I set up a user-defined method
Menu > Form > New Method
ajb2528
pmpmpm
briane
http://www.utmag.com/wconnect/wc.dll LevelExtreme~9,7,10,1699
The article has a bug in a sentence but not important:)
"Note that cImage1 and cImage2 are optional even though syntax says ‘selectedimage’ for the second it’s actually ‘expandedimage’ and shows when item is expanded ( e.g.: Open Folder in explorer)."
I think (downloadable) code there is easier to follow.
LLL1111111111111
NewKey() is a custom method included in the form bldtree.scx in the sample.
It contains the following code:
cKey =
THIS.cNextKeyTHIS.cNextKey = ALLTRIM(STR(VAL(THIS.cNextKey) + 1) + "_")
RETURN cKey
All of the other methods you mention, checkbuttons, openDBF, refreshCombo, and verifyTableStructure, are also in the form as custom methods.
You cannot add or create custom methods at runtime as you can with properties and objects Container.AddProperty() and Container.AddObject()
You add methods to a container (e.g. a Form) at design time through the Main menu, Form | New Method or the Edit Property/Method dialog.
These methods will be inherited and executed when called in subclasses of your form unless overridden, in short: OOP.
HTH