Kernel & Toolkit APIs Banner [skip navigation]
Office of Information and Technology (OIT) Banner

XINDEX: Warning Violation Errors (According to VA Conventions)

These are potential problems that are not necessarily fatal errors but most likely indicate an error. They require careful implementation.

W—Blank(s) at end of line

Standard M has very specific whitespace requirements. Some text editors create extra whitespace that will be caught by XINDEX.

 


W–Duplicate label, (M57)

This is a M standard error. During execution, the first occurrence of the label is executed.

 


W—First line label NOT routine name

The first line of VistA routines is required to be a label that is the same as the routine name.

 


W–Invalid global variable name

Checks that the global name is uppercase and not longer than eight characters.

 


W—Invalid local variable name

XINDEX checks that the local variable name is uppercase and not longer than sixteen characters.

 


W—Line contains a CONTROL (non-graphic) character

The only non-graphic characters permitted in VistA routines are whitespace.

 


W—Null line (no commands or comment)

Every line in a M routine must contain at least one character. The most common single character is the semi-colon (;), which denotes a comment.