VA FileMan V. 22.0 Programmer Manual Banner


Main Chapter Getting Started Manual Advanced User Manual

Classic VA FileMan API

^DIM: M Code Validation

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.

Input Variable

Invoke ^DIM with the line to be validated in the local variable X.

Output Variable

^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