Difference between revisions of "Listbox"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
Line 25: | Line 25: | ||
|valign="top"|Numeric | |valign="top"|Numeric | ||
|valign="top"|Number of items in the List | |valign="top"|Number of items in the List | ||
+ | |- | ||
+ | |valign=top|ListIndex | ||
+ | |valign=top|RW | ||
+ | |valign=top|Numeric | ||
+ | |Current item index value. Note: starts from 0 in Lianja v1.x. From Lianja v2.0 starts from 1 (VFP compatibility). | ||
|- | |- | ||
|valign="top"|RowCount | |valign="top"|RowCount |
Revision as of 08:52, 2 October 2015
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 |
ListIndex | RW | Numeric | Current item index value. Note: starts from 0 in Lianja v1.x. From Lianja v2.0 starts from 1 (VFP compatibility). |
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 | Remove the specified item |
Events
This class supports the Common Events plus the following:
Event | Args | Description |
---|