| Contents: | Main | Chapter | See Also: | Getting Started Manual | Advanced User Manual | |||
| Reference Type | Category | ICR # |
|---|---|---|
| Supported | Classic VA FileMan | 10016 |
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.
| X |
Invoke ^DIM with the line to be validated in the local variable X. |
| 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: June 2026