Difference between revisions of "Listbox"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Helen.george (Talk | contribs) |
||
Line 5: | Line 5: | ||
This class supports the [[:Category:Common_Properties|Common Properties]] plus the following: | This class supports the [[:Category:Common_Properties|Common Properties]] plus the following: | ||
− | {| class="wikitable" width=100% | + | {| class="wikitable" width="100%" |
!width="20%"|Property | !width="20%"|Property | ||
!Access (R/RW) | !Access (R/RW) | ||
Line 57: | Line 57: | ||
This class supports the [[:Category:Common_Methods|Common Methods]] plus the following: | This class supports the [[:Category:Common_Methods|Common Methods]] plus the following: | ||
− | {| class="wikitable" width=100% | + | {| class="wikitable" width="100%" |
!width="20%"|Method | !width="20%"|Method | ||
!Args | !Args | ||
Line 93: | Line 93: | ||
This class supports the [[:Category:Common_Events|Common Events]] plus the following: | This class supports the [[:Category:Common_Events|Common Events]] plus the following: | ||
− | {| class="wikitable" width=100% | + | {| class="wikitable" width="100%" |
!width="20%"|Event | !width="20%"|Event | ||
!Args | !Args |
Revision as of 10:29, 30 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 | R | Numeric | Number of items in the List |
ColumnCount | RW | Numeric | Number of columns 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 |
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 |
---|