Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TreeView.Indentation Problem
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00644259
Message ID:
00644436
Views:
18
If you're doing it from the form's method than
Thisform.mytreeview.OBJECT.Indentation = xIndentat
Can you post your code?

>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
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform