Difference between revisions of "PropertyListBox.LoadFromRecordSet"

From Jeremie Leroy - XOJO Controls Wiki
Jump to: navigation, search
m (1 revision)
m (2 revisions imported)
(No difference)

Revision as of 14:24, 6 August 2015

Method
PropertyListBox.LoadFromRecordSet ( RS As RecordSet, IDField As Integer = 1, DisplayID As Boolean = False, DefaultType As Integer = 0 ) As Boolean


This method is used to load a RecordSet to "populate" the Listbox.

The fiRSt row of the RecordSet is displayed. Field names go in the first column and field values go in the second value of the Listbox.

IDField is the nth Field of the RecordSet that represents the ID or Primary key in the RecordSet.

If DisplayID is set to True, the ID will be displayed in the Listbox.

DefaultType is the default LineType you want to apply to VARCHAR and TEXT fields.