Difference between revisions of "PropertyListBox.NewRow"

From Jeremie Leroy - XOJO Controls Wiki
Jump to: navigation, search
m (1 revision)
Line 6: Line 6:
 
| parameters=Name As String, Caption As String = "", isChild As Boolean = False
 
| parameters=Name As String, Caption As String = "", isChild As Boolean = False
 
| returntype=
 
| returntype=
 +
| version=1.5.0
 
| platform=all
 
| platform=all
 
}}
 
}}
Line 12: Line 13:
  
 
Because the Listbox uses its own storage system, to add a new row to the Listbox, use this method instead of Addrow.
 
Because the Listbox uses its own storage system, to add a new row to the Listbox, use this method instead of Addrow.
Caption and isChild are optional parameters.
+
Caption and'' isChild'' are optional parameters.
If Caption is an empty String, the Name is used as Caption.
+
If'' Caption'' is an empty String, the ''Name'' is used as Caption.
 +
The “isChild” parameter is to set the new row as a child to the last Header. This is only effective if the Listbox is Hierarchical.

Revision as of 12:10, 24 November 2012

Method
PropertyListBox.NewRow ( Name As String, Caption As String = "", isChild As Boolean = False )


Because the Listbox uses its own storage system, to add a new row to the Listbox, use this method instead of Addrow. Caption and isChild are optional parameters. If Caption is an empty String, the Name is used as Caption. The “isChild” parameter is to set the new row as a child to the last Header. This is only effective if the Listbox is Hierarchical.