MoveNext Method



 
The MoveNext method moves to the next row of the currently opened query.


Syntax

    [bool=] DatabaseQuery.MoveNext(skip, forward)
    
Parameters
    skip Long value that contains the number of rows to skip.
    forward Boolean value that specifies whether the move forward.
Return Value
    Returns a Boolean value that indicates whether the row could be read.
Remarks
    None.
Examples
    The following example opens a database query and displays the third returned row.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    dbquery = SiteCafe.Server.CreateDatabaseQuery();
    dbquery.Open("SELECT * FROM users");
    dbquery.MoveFirst();
    success = dbquery.MoveNext(1, true);
    if (success) alert(dbquery.GetRowData());
    </SCRIPT>
    

Applies to
    SiteKiosk v6.2 (and later versions).

Back to top