QueryRun.next Method

Retrieves the next record from the query.

Syntax

public boolean next()

Run On

Called

Return Value

Type: boolean
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.

Examples

{ 
    queryRun qr; 
    CustTable ct; 
    // ... 
    if (qr.prompt()) 
    { 
        while (qr.next()) 
        { 
            if (qr.Changed(tableNum(CustTable))) 
            { 
                ct = qr.Get (tableNum(CustTable)); 
                print ct.AccountNum; 
            } 
        } 
    } 
}

See Also

QueryRun Class

QueryRun.changed Method

QueryRun.changedNo Method

QueryRun.getNo Method