DataSource Object

The DataSource object was implemented to avoid eMill from being restricted to one data access technology. eMill includes source code to access any ADO compatible data source. Developers could replace this code with their own code to implement data access to any non ADO database. 

Syntax

DataSource.collection|property|method

Properties
BOF Indicates that the current record position is before the first record.
EOF Indicates that the current record position is after the last record.

Additional header fields can be set using the Headers collection

Methods
Open This method opens the data source.
Close This method closes the data source.
GetRowCount Returns the number of records in the data source.
CanMovePrevious Returns True if the record position can move backward.
MoveFirst Moves the record position to the first record.
Move Moves the position of the current record.
CanDelete Returns True if records can be deleted.
Delete Deletes the current record.
AddNew Prepares a new empty record.
Update Updates the current record.
CanUpdate Returns True if records can be updated.
CancelUpdate Cancel any pending updates due to a AddNew operation.
Remarks

The DataSource object cannot be accessed directly. The Record object should be used to exchange data between the DataSource object and a script enabled content file.

See Also

Record Object



©2001-2015 eMill. All trademarks property of their owners.