Cursor operation example


Is there someone who have tried to use the openCursor, fetchCursor and closeCursor methods?
I am looking for some examples so that I can handle the quantity and result position.



The openCursor(), fetchCursor() methods are part of the TStreamAccessor interface. If this what you need to do because for each individual set of results you would have to process it yourself.

If you want things in a DOM representation for example you can use TXMLObjectAccessor.Query(TQuery, int) method. Because this uses the new cursoring mechanism you must be within a local transaction context (and this is the same with TStreamAccessor as well). From the TResponse object you can get a TXMLObjectIterator and then use next(), prev() and moveBy().

Does this help?

Thanks for your explanation.