First

[property icon] First

Get first item object

Read-only Runtime-only OBJECT reference property

Applies to: ComboBox , Grid , GridCell , KCMLEdit , List Box

Introduced in KCML version 5.03


[property icon] First

Get first item object

Read-only Runtime-only OBJECT reference property

Applies to: Grid , GridCell , KCMLEdit

Introduced in KCML version 6.20


[property icon] First

Get object for first item

Read-only Runtime-only OBJECT reference property

Applies to: Tree

Introduced in KCML version 6.00


>

First

This property returns a listitem object reference for the first entry in the edits listbox. It will be NULL if the listbox is empty. The next item can then be found by using the Next property on this object e.g.

 count = 0
 OBJECT c = .editControl1.First
 WHILE OBJECT c <> NULL DO
        count++
    OBJECT c = c.Next
 WEND

ListBox

This property returns an listitem object reference for the first entry in a listbox. It will be NULL if the listbox is empty. The next item can then be found by using the Next property on this object e.g.

 count = 0
 OBJECT c = .listControl1.First
 WHILE OBJECT c <> NULL DO
        count++
    OBJECT c = c.Next
 WEND

Tree

This property returns an object reference to the first tree node in the tree. The property can be used with the Next and Child properties to recursively navigate the entire tree.

 OBJECT c = .treeControl1.First

See also

ComboBox methods, properties and events. Grid methods, properties and events. GridCell methods, properties and events. KCMLEdit methods, properties and events. List Box methods, properties and events. Tree methods, properties and events.