ComponentOne List 8.0 for ActiveX
XArrayDB Object

The XArrayDB object implements a two-dimensional array of arbitrary variants. XArrayDB objects automatically shift their contents when rows (or columns) are inserted or deleted. You can use the Find and QuickSort methods to perform searching and sorting without having to iterate over the array elements yourself.

Unlike the RowBuffer object, you can create one or more standalone XArrayDB objects in code. You can even use XArrayDB outside the context of True DBList, as it is packaged as a separate file, XARRAYDB.OCX, which is not dependent upon any of the list .OCX files.

The XArrayDB object is used as a data source for a TDBList or TDBCombo control in storage mode, which corresponds to a DataMode property setting of 4 - Storage. To connect an XArrayDB object to a storage mode control, set the control's Array property.

Version 5.0 introduced the XArray object (without the DB), which supports up to ten dimensions but does not provide any methods for searching and sorting. For backward compatibility, version 6.0 and newer also supports the XArray object in storage mode. However, XArrayDB is preferred, since it is optimized for the two-dimensional case and supports sorting and searching.
See Also

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback