ResultSet.wasNull Method [AX 2012]

Reports whether the last column read has the value SQL NULL.

public boolean wasNull(int ColumnID)

Run On

Called

Parameters

ColumnID
Type: int
The column ID.

Return Value

Type: boolean
true if the last column read has the value SQL nullNothingnullptrunita null reference (Nothing in Visual Basic); otherwise false.

You must first call a get method, like the ResultSet.getInt method, on a column to try to read its value; then call the wasNull method to find whether the value was the SQL NULL.

Community Additions

ADD
Show: