FireDAC.Phys.MongoDBWrapper.TMongoCursor.Next

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Next: Boolean; overload;
function Next(ADoc: TMongoDocument): Boolean; overload;

C++

bool __fastcall Next()/* overload */;
bool __fastcall Next(TMongoDocument* ADoc)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
FireDAC.Phys.MongoDBWrapper.pas
FireDAC.Phys.MongoDBWrapper.hpp
FireDAC.Phys.MongoDBWrapper TMongoCursor

Description

Moves the cursor to the next document and causes the Doc property to return a reference to this document.

FireDAC.Phys.MongoDBWrapper.TMongoCursor.Next inherits from FireDAC.Phys.MongoDBWrapper.IMongoCursor.Next. All content below this line refers to FireDAC.Phys.MongoDBWrapper.IMongoCursor.Next.

Moves the cursor to the next document and causes the Doc property to return a reference to this document.

This method is overloaded:

  • The first overloaded method moves the cursor to the next document.
  • The second overloaded method moves the cursor to the specified ADoc document.

Note: The first call of the Next method positions the cursor at the first document.

If the document is found, the Doc property returns a reference to this document and the Next method returns True. Otherwise, this method returns False.

See Also