QueryRun.next Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the next record from the query.
public:
virtual bool next();
public virtual bool next ();
abstract member next : unit -> bool
override this.next : unit -> bool
Public Overridable Function next () As Boolean
Returns
true if the next record is available and can be fetched with the getNo method or get method; false if no there are no more records that satisfy the constraint set up in the query.
Remarks
The changed method or changedNo method can be used to check whether the record from the given data source has changed since the previous call to the next method.
The following example demonstrates the next method.
{
queryRun qr;
CustTable ct;
// ...
if (qr.prompt())
{
while (qr.next())
{
if (qr.Changed(tableNum(CustTable)))
{
ct = qr.Get (tableNum(CustTable));
print ct.AccountNum;
}
}
}
}