Does not work, Sergey. Seems that VFP won't allow me to access the Indentation property of the treeview. I get compilation errors when saving the form. The only way I could find to make to stop the errors (when saving), was using WITH ... ENDWITH. When I run the form, and call the method that changes the identation, I get the error.
Any ideas?
>Try to reference TreeView directly
This.OBJECT.Indentation = xIndentat
In this case THIS is olecontainer and This.OBJECT is a treeview.
>
>>Hi
>>
>>I am having 2 little problems with the TreeView.Indentation property:
>>
>>1)
This.Indentation = xIndentation: I get "unrecognized command verb".
>>
>>2)
xIndentation = INPUTBOX("Type the new indentation","TreeView",This.Indentation): I get "Function name is missing )"
>>
>>Why? As far as I know, I am typing everything correct. I tried also using This.OBJECT.Indentation but nothing changed. What can I do? What am I missing?
>>
>>The commands above are placed inside the MouseDown Event of the TreeView.
>>
>>TIA
>>
>>Alonso
Like Frank said: "I did it... MY WAY!"