/
Space after Comma

Object Manager

Space after Comma

The guidelines of NAV says that you cannot put a space after a comma. Many developers like to place there a comma anyway. In the setup you can choose which method the Object Manager has to check.

19_setup-3.png

If you choose the option Mandatory your code have to look like this:

IF NOT PrinterSelection.GET(USERID, ReportID) THEN IF NOT PrinterSelection.GET('', ReportID) THEN IF NOT PrinterSelection.GET(USERID, 0) THEN IF PrinterSelection.GET('', 0) THEN;

If you choose the Prohibited setting your code has to look like this:

IF NOT PrinterSelection.GET(USERID,ReportID) THEN IF NOT PrinterSelection.GET('',ReportID) THEN IF NOT PrinterSelection.GET(USERID,0) THEN IF PrinterSelection.GET('',0) THEN;

It is also possible to leave this option blank. The Object Manager will not check for spaces after comma.

Related content

IDYN 2024