def name value
name - name.
value - value. Can be a constant value of any type (number, string), or any other expression. Can include nonconstant values (global variables, functions).
Defines a named constant. A named constant is a meaningful name that takes the place of a number, string or other expression. It is similar to a variable, but cannot be modified. Named constants have global scope, i.e. can be used in any macro.
Named constants also can be defined in reference files and type libraries. QM defines many Windows constants in WINAPI and other reference files. You can use them directly or with "WINAPI." prefix, like in this example:
out WINAPI.ERROR_BAD_PATHNAME
See also: predefined/special constants and variables, declarations, scope, how to define constants at startup.
def MAX_PATH 260 def GMEM_SHARE 0x2000 def dblconst -1.25 def strconst "String constant" def GPTR GMEM_FIXED|GMEM_ZEROINIT def A10 A + 10 def IID_IShellFolder uuidof("{000214E6-0000-0000-C000-000000000046}")