PropertyListBox.LoadFromRecordSet

From Jeremie Leroy - XOJO Controls Wiki
Revision as of 13:24, 6 August 2015 by Admin (Talk | contribs) (2 revisions imported)

Jump to: navigation, search
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.