Difference between revisions of "Listbox"
From Lianjapedia
Helen.george (Talk | contribs) |
Helen.george (Talk | contribs) |
||
Line 11: | Line 11: | ||
!width="50%"|Description | !width="50%"|Description | ||
|- | |- | ||
− | |valign="top"| | + | |valign="top"|ActiveRow |
|valign="top"|RW | |valign="top"|RW | ||
− | |valign="top"| | + | |valign="top"|Numeric |
− | |valign="top"|Currently selected row | + | |valign="top"|Currently selected row number |
|- | |- | ||
− | |valign="top"| | + | |valign="top"|ColumnCount |
|valign="top"|RW | |valign="top"|RW | ||
− | |valign="top"| | + | |valign="top"|Numeric |
− | |valign="top"| | + | |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"| | + | |valign="top"|RowCount |
− | |valign="top"| | + | |valign="top"|R |
|valign="top"|Numeric | |valign="top"|Numeric | ||
− | |valign="top"| | + | |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"| | + | |valign="top"|Text |
− | |valign="top"| | + | |valign="top"|RW |
− | |valign="top"| | + | |valign="top"|Character |
− | |valign="top"| | + | |valign="top"|Currently selected row text |
|- | |- | ||
− | |valign="top"| | + | |valign="top"|Value |
|valign="top"|RW | |valign="top"|RW | ||
− | |valign="top"| | + | |valign="top"|Character |
− | |valign="top"|Currently selected row | + | |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 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
|Clear | |Clear | ||
Line 79: | Line 74: | ||
|Clear the ListBox | |Clear the ListBox | ||
|- | |- | ||
− | | | + | |Item |
|itemnumber as Numeric | |itemnumber as Numeric | ||
|Return the text of the specified item | |Return the text of the specified 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 |
---|