Article ID: 136270
Article Last Modified on 2/15/2000
ThisForm.<OleControl>.Object.Expand(<n>)=.T.|.F.The Object property provides access to the OLE Server properties and methods for an OLE object, which in this case, is the Outline control. The numeric value enclosed in the parentheses that follow Expand is the Index number of the item that you want to expand.
This.AddItem("U.S Auto Makers",0)
This.AddItem("Chrysler ",1)
This.AddItem("General Motors",2)
This.AddItem("Ford",3)
This.AddItem("Japanese Auto Makers",4)
This.AddItem("Mazda ",5)
This.AddItem("Nissan",6)
This.AddItem("Toyota",7
This.Indent(0)=1
This.Indent(1)=2
This.Indent(2)=2
This.Indent(3)=2
This.Indent(4)=1
This.Indent(5)=2
This.Indent(6)=2
This.Indent(7)=2
ThisForm.OleControl1.Object.Expand(0)=;
!(ThisForm.OleControl1.Object.Expand(0)
If ThisForm.OleControl1.Object.Expand(0)
This.Caption="Collapse U.S List"
Else
This.Caption="Expand U.S List"
EndIf
ThisForm.OleControl1.Object.Expand(4)=;
!(ThisForm.OleControl1.Object.Expand(4)
If ThisForm.OleControl1.Object.Expand(4)
This.Caption="Collapse Japanese List"
Else
This.Caption="Expand Japanese List"
EndIf
Additional query words: VFoxWin
Keywords: KB136270