Difference between revisions of "Listbox"

From Lianjapedia
Jump to: navigation, search
Line 11: Line 11:
 
!width="50%"|Description
 
!width="50%"|Description
 
|-
 
|-
|valign="top"|Text
+
|valign="top"|ActiveRow
 
|valign="top"|RW
 
|valign="top"|RW
|valign="top"|Character
+
|valign="top"|Numeric
|valign="top"|Currently selected row text
+
|valign="top"|Currently selected row number
 
|-
 
|-
|valign="top"|Value
+
|valign="top"|ColumnCount
 
|valign="top"|RW
 
|valign="top"|RW
|valign="top"|Character
+
|valign="top"|Numeric
|valign="top"|Currently selected row text
+
|valign="top"| Number of columns in the List
 
|-
 
|-
 
|valign="top"|ListCount
 
|valign="top"|ListCount
Line 26: Line 26:
 
|valign="top"|Number of items in the List
 
|valign="top"|Number of items in the List
 
|-
 
|-
|valign="top"|ColumnCount
+
|valign="top"|RowCount
|valign="top"|RW
+
|valign="top"|R
 
|valign="top"|Numeric
 
|valign="top"|Numeric
|valign="top"| Number of columns in the List
+
|valign="top"|Number of rows in the List
 
|-
 
|-
 
|valign="top"|RowSource
 
|valign="top"|RowSource
Line 41: Line 41:
 
|valign="top"|Type of Source of data to which the object is bound: 1 = comma-separated string, 2 = table, 3 = SQL statement, 5 = array, 6 = comma-separated fieldlist, 8 = table field structure
 
|valign="top"|Type of Source of data to which the object is bound: 1 = comma-separated string, 2 = table, 3 = SQL statement, 5 = array, 6 = comma-separated fieldlist, 8 = table field structure
 
|-
 
|-
|valign="top"|RowCount
+
|valign="top"|Text
|valign="top"|R
+
|valign="top"|RW
|valign="top"|Numeric
+
|valign="top"|Character
|valign="top"|Number of rows in the List
+
|valign="top"|Currently selected row text
 
|-
 
|-
|valign="top"|ActiveRow
+
|valign="top"|Value
 
|valign="top"|RW
 
|valign="top"|RW
|valign="top"|Numeric
+
|valign="top"|Character
|valign="top"|Currently selected row number
+
|valign="top"|Currently selected row text
 
|-
 
|-
 
|}
 
|}
Line 69: Line 69:
 
|valign="top"|selectstatement as Character | commalist as Character | pipelist as Character | items as Array
 
|valign="top"|selectstatement as Character | commalist as Character | pipelist as Character | items as Array
 
|valign="top"|Add items based on an SQL SELECT query, a comma-separated list, a pipe-separated list or an array
 
|valign="top"|Add items based on an SQL SELECT query, a comma-separated list, a pipe-separated list or an array
|-
 
|valign="top"|RemoveItem
 
|valign="top"|
 
itemtext as Character | itemnumber as Numeric
 
|valign="top"|
 
 
|-
 
|-
 
|Clear
 
|Clear
Line 79: Line 74:
 
|Clear the ListBox
 
|Clear the ListBox
 
|-
 
|-
|List
+
|Item
 
|itemnumber as Numeric
 
|itemnumber as Numeric
 
|Return the text of the specified item
 
|Return the text of the specified item
 
|-
 
|-
|Item
+
|List
 
|itemnumber as Numeric
 
|itemnumber as Numeric
 
|Return the text of the specified item
 
|Return the text of the specified item
 +
|-
 +
|valign="top"|RemoveItem
 +
|valign="top"|
 +
itemtext as Character | itemnumber as Numeric
 +
|valign="top"|
 
|-
 
|-
 
|}
 
|}

Revision as of 10:37, 30 April 2013

Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.

Properties

This class supports the Common Properties plus the following:

Property Access (R/RW) Value Description
ActiveRow RW Numeric Currently selected row number
ColumnCount RW Numeric Number of columns in the List
ListCount R Numeric Number of items in the List
RowCount R Numeric Number of rows in the List
RowSource RW Character Source of data to which the object is bound
RowSourceType RW Numeric Type of Source of data to which the object is bound: 1 = comma-separated string, 2 = table, 3 = SQL statement, 5 = array, 6 = comma-separated fieldlist, 8 = table field structure
Text RW Character Currently selected row text
Value RW Character Currently selected row text

Methods

This class supports the Common Methods plus the following:

Method Args Description
AddItem item as Character Add an item
AddItems selectstatement as Character | commalist as Character | pipelist as Character | items as Array Add items based on an SQL SELECT query, a comma-separated list, a pipe-separated list or an array
Clear None Clear the ListBox
Item itemnumber as Numeric Return the text of the specified item
List itemnumber as Numeric Return the text of the specified item
RemoveItem

itemtext as Character | itemnumber as Numeric

Events

This class supports the Common Events plus the following:

Event Args Description