|Contents:||Main||Chapter||See Also:||Getting Started Manual||Advanced User Manual|
Call ^DIM to validate any line of M code. ^DIM checks that code conforms to the 1995 ANSI Standard. Code is also checked against aspects of VHA's Programming Standards and Conventions (SAC).
NOTE: ^DIM does not allow killing an unsubscripted global.
Invoke ^DIM with the line to be validated in the local variable X.
^DIM either kills X or leaves it unchanged. If $D(X) is zero on return from ^DIM, the line of code is invalid. However, the converse is not always true; in other words, ^DIM is not as smart as a real M interpreter and sometimes validates strings when it should not.
Reviewed/Updated: March 4, 2007