Difference between revisions of "Listbox"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Helen.george (Talk | contribs) |
||
Line 1: | Line 1: | ||
+ | Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages. | ||
+ | |||
====Properties==== | ====Properties==== | ||
Line 9: | Line 11: | ||
!width="50%"|Description | !width="50%"|Description | ||
|- | |- | ||
− | |Text | + | |valign="top"|Text |
− | |RW | + | |valign="top"|RW |
− | | | + | |valign="top"|Character |
− | | | + | |valign="top"|Currently selected row text |
|- | |- | ||
− | |Value | + | |valign="top"|Value |
− | |RW | + | |valign="top"|RW |
− | | | + | |valign="top"|Character |
− | | | + | |valign="top"|Currently selected row text |
|- | |- | ||
− | | | + | |valign="top"|ListCount |
− | |R | + | |valign="top"|RW |
− | | | + | |valign="top"|Numeric |
− | | | + | |valign="top"|Number of items in the List |
+ | |- | ||
+ | |valign="top"|ColumnCount | ||
+ | |valign="top"|R | ||
+ | |valign="top"|Numeric | ||
+ | |valign="top"| Number of columns in the List | ||
+ | |- | ||
+ | |valign="top"|RowSource | ||
+ | |valign="top"|RW | ||
+ | |valign="top"|Numeric | ||
+ | |valign="top"|Source of data to which the object is bound | ||
+ | |- | ||
+ | |valign="top"|RowSourceType | ||
+ | |valign="top"|RW | ||
+ | |valign="top"|Numeric | ||
+ | |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"|R | ||
+ | |valign="top"|Numeric | ||
+ | |valign="top"|Number of rows in the List | ||
+ | |- | ||
+ | |valign="top"|ActiveRow | ||
+ | |valign="top"|RW | ||
+ | |valign="top"|Numeric | ||
+ | |valign="top"|Currently selected row number | ||
|- | |- | ||
|} | |} | ||
Line 35: | Line 62: | ||
!width="50%"|Description | !width="50%"|Description | ||
|- | |- | ||
− | | | + | |AddItem |
− | | | + | |item as Character |
− | | | + | |Add an item |
|- | |- | ||
− | | | + | |valign="top"|AddItems |
− | | | + | |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"|RemoveItem |
− | | | + | |valign="top"| |
− | | | + | itemtext as Character | itemnumber as Numeric |
+ | |valign="top"| | ||
|- | |- | ||
|Clear | |Clear | ||
− | | | + | |None |
− | | | + | |Clear the ListBox |
|- | |- | ||
|List | |List | ||
− | | | + | |itemnumber as Numeric |
− | | | + | |Return the text of the specified item |
+ | |- | ||
+ | |Item | ||
+ | |itemnumber as Numeric | ||
+ | |Return the text of the specified item | ||
|- | |- | ||
|} | |} |
Revision as of 07:29, 9 January 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 |
---|---|---|---|
Text | RW | Character | Currently selected row text |
Value | RW | Character | Currently selected row text |
ListCount | RW | Numeric | Number of items in the List |
ColumnCount | R | Numeric | Number of columns in the List |
RowSource | RW | Numeric | 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 |
RowCount | R | Numeric | Number of rows in the List |
ActiveRow | RW | Numeric | Currently selected row number |
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 |
RemoveItem |
itemtext as Character | itemnumber as Numeric |
|
Clear | None | Clear the ListBox |
List | itemnumber as Numeric | Return the text of the specified item |
Item | itemnumber as Numeric | Return the text of the specified item |
Events
This class supports the Common Events plus the following:
Event | Args | Description |
---|