Share via


#NAME Preprocessor Directive

This screen and menu generator directive names a snippet produced by clauses such as SHOW, WHEN and VALID, whether the snippet is produced at the object or READ level.

#NAME SnippetName

Parameters

  • SnippetName
    Specifies the name assigned to the snippet. SnippetName must conform to the rules for naming procedures and functions.

Remarks

The #NAME directive must appear at the top of a snippet, before any code statements. You can precede the #NAME directive with blank lines or comments.

Note

Visual FoxPro does not check for duplicate names.

See Also

Reference

#DEFINE ... #UNDEF Preprocessor Directive

#IF ... #ENDIF Preprocessor Directive

#IFDEF | #IFNDEF ... #ENDIF Preprocessor Directive

Other Resources

Preprocessor Directives (Visual FoxPro)