ascot diagnostics

A7342

Error: Argument {position} of {function} can’t be left empty

The call leaves an argument empty between two commas, and this function does not allow an empty argument there. Some functions do allow one, so $FNUMBER(amount,,2) compiles while $JUSTIFY(amount,,2) does not. IRIS refuses to compile the call (ERROR #1054: Invalid expression). Write the argument out.

IRIS rejects the example.

Class Demo.OmittedArgument
{

ClassMethod Cents(amount As %Numeric) As %String
{
    Quit $JUSTIFY(amount, , 2) //! A7342
}

}

All diagnostics