// Check for changement first.
// First use the Haschanges method to detect the affected line (Return Bool)
IF (! myDataSet.Haschanges (DATAROWSTATE.MODIFIED) RETURN;
// Create a temporary DataSet
DataSet XDataSet;
// Use the DataSet's getChanges method to get the affected row
XDataSet = MyDataSet.getChanges (DataRowState.Modified);
// Detect DataSet Error
IF (xDataSet.haserror) {
Throw New Exception ("Error Message!");
}
// Use the data adapter to update the DataSet;
MyoledBDataAdapter.UPdate (xDataSet);