Article ID: 128073
Article Last Modified on 2/12/2000
FrmForm1.Outl1.Additem('TextBox')
This line of code adds the item labeled TextBox. The item is added to
end of the list or as a subordinate item, depending on whether or not
an element in the list is selected when the item is added.
FrmForm1.Outl1.Additem('Command',1)
Frm1.Outl1.Indent(1)=1
Frm1.Outl1.Additem('CheckBox',1)
If the new item uses a new index when it is added (that is, no element
existed at this position), the indentation level of the new item is 0.
Because only the first element of the list is visible at indent 0, the
indentation level of other items will need to be modified.
* The following lines add items to the list
This.Additem('Vegetables',0) &&
This.Additem('Carrots',1)
This.Additem('Potatoes',2)
This.Additem('Fruit',3)
This.Additem('Apples',4)
This.Additem('Oranges',5)
** The following lines set the indentation level of the elements.
** Without this code, the items would not be visible.
This.Indent(0)=1
This.Indent(1)=2
This.Indent(2)=2
This.Indent(3)=1
This.Indent(4)=2
This.Indent(5)=2Additional query words: VFoxWin OCX 3.00
Keywords: KB128073