sdaiDeleteIterator


Deletes the specified iterator from the actual EDMserver. All iterators that are created during an open _EDMserver_ session will be deleted when the actual open _EDMserver_ session is closed.
Related functions: sdaiCreateIterator , sdaiBeginning , sdaiNext , sdaiPrevious , sdaiEnd , sdaiGetAggrByIterator , sdaiPutAggrByIterator , sdaiUnsetAggrByIterator , edmiTestAggrByIterator , sdaiCreateNestedAggrByIterator , sdaiInsertBefore , sdaiInsertAfter , sdaiRemove , sdaiDelete .
Header:
#include "sdai.h"
Prototype:
void sdaiDeleteIterator(SdaiIterator iterator);
Arguments:

iterator

A numeric iteratorID that uniquely identifies the iterator to delete from the actual open _EDMserver_ session.
The iteratorID is defined by the sdaiCreateIterator function.

Returns:
Void – use sdaiErrorQuery to check for error in operation.
Example:
SdaiIterator iterId;
SdaiAggr aggregate;
SdaiErrorCode errCode;
...
iterId = sdaiCreateIterator(aggregate);
. . .
sdaiDeleteIterator(iterId);
errCode = sdaiErrorQuery();
if (errCode) {
/* Error in operation */ 
printf("\nError: %s in sdaiDeleteIterator \n", 
edmiGetErrorText(errCode)); 
goto error; 
}
. . .