Show/Hide Toolbars

XSharp

Purpose

The NOP statement inserts an empty statement in the code

Syntax

NOP

Remarks

The NOP statement is an empty statement. It can be used to indicate that a certain code section is left intentionally empty

Examples

FUNCTION Start(aArgs as string[]) AS VOID
  IF aArgs != NULL .AND. aArgs:Length > 0
      ? "You passed ", aArgs:Length, "command line parameters"
  ELSE
      NOP   // This indicates that the else branch is not forgotten but intentionally empty
  ENDIF
   .....
RETURN