ascot diagnostics

A3286

Error: ‘{action}’ is not a valid $ZSTRIP action: {reason}

$ZSTRIP’s action is *, or some of <, > and =, then mask codes from E A P C N L U W, a ' before each one to negate, the negated after the plain; this constant action does not fit that form. IRIS compiles the call and raises <FUNCTION> when it runs. Spell the action from those codes.

IRIS compiles the example, and do ##class(Demo.InvalidZStripAction).Trim(" x ") raises <FUNCTION> when it runs.

Class Demo.InvalidZStripAction
{

ClassMethod Trim(text As %String) As %String
{
    Quit $ZSTRIP(text, "<>S") //! A3286
}

}

All diagnostics