LoadPoint |
Insertion Point for List/Drop Box Loads |
Insertion point for list/drop box loads
This property controls where the data loaded to a list_box, drop_box, varlist_box or vardrop_box will be inserted. When a list/drop box LOAD directive is issued with no index, the current contents of the control will first be cleared and the new data will replace it. Setting the 'LoadPoint property to a non-zero value alters this behavior.
If 'LoadPoint is set to -1, the data included with the list/drop box LOAD directive will be appended to the list box contents.
If 'LoadPoint is set to -2, the data included with the list/drop box LOAD directive will replace the current contents of the list starting at the item number set in the 'Item property, which will be updated to the next item number once the load is complete (new items will be added, if required).
If 'LoadPoint is set to a value > 0, the data will be inserted into the list at the point specified and the value in 'LoadPoint will be reset.
This functionality allows drop boxes to be loaded a block of records at a time.
(The LoadPoint property was added in PxPlus v8.11.)
(The LoadPoint setting of -2 was added in PxPlus 2019.)
DROP_BOX • LIST_BOX • LIST_VIEW • REPORT_VIEW • VARDROP_BOX • VARLIST_BOX