NullRowID

See Also: RowId, RowId Helper Functions

Purpose

Sets a RowId variable to Null.

Return Type

RowId

Syntax

 

(NullRowID())

 

What it Does

NullRowId is used to "clear" a RowId variable. It moves a null value into a RowId variable.

Example

 

Function RefindLastRecord returns Boolean

    RowId riCustomer

    Boolean bFound

 

    Get priLastRow to riCustomer

    If (IsNullRowId(riCustomer)) begin      

        Send RecordDoesNotExist

    End

    Else Begin

        Move (FindByRowId(Customer.File_Number, riCustomer)) to bFound

    End

 

    // after operation, set the RowId to null and store it in a property

    Move (NullRowId()) to riCustomer

    Set priLastRowId to riCustomer

    Function_Return bFound

End_Function