Eof

Indicates the end of query.

Example
Copy
var Query;
Query = CRM.CreateQueryObj("Select * from vCompany");
Query.SelectSql();
while (!Query.eof)
    {
        Response.Write(Query("comp_companyid") + " = " + Query("comp_name")+' ');
        Query.NextRecord();
    }

Displays the company identifiers and name fields from the selected SQL query until the end of the query.