NULL

NULL

Top  Previous  Next

 

The NULL statement performs no action.

 

 

Format

 

NULL

 

 

The NULL statement is useful to satisfy the requirements of QMBasic syntax where no specific action is required. No object code is generated by this statement.

 

 

Example

 

READ REC FROM CONTROL.FILE, "INVOICE.LIST" ELSE NULL

 

This statement reads the record "INVOICE.LIST" from the file open as file variable CONTROL.FILE. The READ statement must have either or both of the THEN and ELSE clauses. If the record is not found, REC will be set to a null string by the READ statement and the ELSE clause will be executed. As no further action is required, this clause is simply a NULL statement.