The compiler provides a convenient set of built-in numeric equates.
For determining the compiler version (see %DEF for more information):
%PB_CC32, %PB_DLL16, %PB_DLL32, %PB_EXE, %PB_REVISION, %PB_REVLETTER, %PB_WIN32
For use with ARRAYATTR:
%VARCLASS_BYT, %VARCLASS_WRD, %VARCLASS_DWD, %VARCLASS_INT, %VARCLASS_LNG, %VARCLASS_QUD, %VARCLASS_SNG, %VARCLASS_DBL, %VARCLASS_EXT, %VARCLASS_CUR, %VARCLASS_CUX, %VARCLASS_VRNT, %VARCLASS_IFAC, %VARCLASS_GUID, %VARCLASS_TYPE, %VARCLASS_ASC, %VARCLASS_FIX, %VARCLASS_STR, %VARCLASS_BIT, %VARCLASS_SBT, %VARCLASS_FLD, %VARCLASS_TNY, %VARCLASS_BLN, %VARCLASS_DAT, %VARCLASS_DEC, %VARCLASS_ASCU, %VARCLASS_FIXU, %VARCLASS_STRU, %VARCLASS_FLDU
For use with CLIPBOARD GET ITEM and CLIPBOARD SET ITEM statements:
%CF_TEXT, %CF_BITMAP, %CF_METAFILEPICT, %CF_SYLK, %CF_DIF, %CF_TIFF, %CF_OEMTEXT, %CF_DIB, %CF_PALETTE, %CF_PENDATA, %CF_RIFF, %CF_WAVE, %CF_UNICODETEXT, %CF_ENHMETAFILE, %CF_HDROP, %CF_LOCALE
For use with the GRAPHICS statements and the XPRINT statements.:
%BLACK, %BLUE, %GREEN, %CYAN, %RED, %MAGENTA, %YELLOW, %WHITE, %GRAY, %LTGRAY
For use with ERR and ERRCLEAR:
%ERR_NOERROR, %ERR_ILLEGALFUNCTIONCALL, %ERR_OVERFLOW (reserved), %ERR_OUTOFMEMORY, %ERR_SUBSCRIPTPOINTEROUTOFRANGE, %ERR_DIVISIONBYZERO (reserved), %ERR_DEVICETIMEOUT, %ERR_INTERNALERROR, %ERR_BADFILENAMEORNUMBER, %ERR_FILENOTFOUND, %ERR_BADFILEMODE, %ERR_FILEISOPEN, %ERR_DEVICEIOERROR, %ERR_FILEALREADYEXISTS, %ERR_DISKFULL, %ERR_INPUTPASTEND, %ERR_BADRECORDNUMBER, %ERR_BADFILENAME, %ERR_TOOMANYFILES, %ERR_DEVICEUNAVAILABLE, %ERR_COMMERROR, %ERR_PERMISSIONDENIED, %ERR_DISKNOTREADY, %ERR_DISKMEDIAERROR, %ERR_RENAMEACROSSDISKS, %ERR_PATHFILEACCESSERROR, %ERR_PATHNOTFOUND, %ERR_OBJECTERROR, %ERR_GLOBALMEMORYCORRUPT (formerly %ERR_FARHEAPCORRUPT), %ERR_STRINGSPACECORRUPT
For use with GRAPHIC COPY, GRAPHIC GET MIX, GRAPHIC SET MIX, GRAPHIC STRETCH, XPRINT COPY, XPRINT GET MIX, XPRINT SET MIX, and XPRINT STRETCH (some statements may accept only a subset of these equates):
%MIX_BLACKNESS, %MIX_NOTMERGESRC, %MIX_MASKNOTSRC, %MIX_NOTCOPYSRC, %MIX_MASKSRCNOT, %MIX_NOT, %MIX_XORSRC, %MIX_NOTMASKSRC, %MIX_MASKSRC, %MIX_NOTXORSRC, %MIX_NOP, %MIX_MERGENOTSRC, %MIX_COPYSRC, %MIX_MERGESRCNOT, %MIX_MERGESRC, %MIX_WHITENESS, %BLACKONWHITE, %WHITEONBLACK, %COLORONCOLOR, %HALFTONE
For use with OBJRESULT and IDISPINFO:
%S_OK, %S_FALSE, %E_UNEXPECTED, %E_NOTIMPL, %E_NOINTERFACE, %E_POINTER, %E_ABORT, %E_FAIL, %E_ACCESSDENIED, %E_HANDLE, %E_OUTOFMEMORY, %E_INVALIDARG, %DISP_E_ARRAYISLOCKED, %DISP_E_BADINDEX, %DISP_E_BADPARAMCOUNT, %DISP_E_BADVARTYPE, %DISP_E_EXCEPTION, %DISP_E_MEMBERNOTFOUND, %DISP_E_NONAMEDARGS, %DISP_E_OVERFLOW, %DISP_E_PARAMNOTFOUND, %DISP_E_TYPEMISMATCH, %DISP_E_UNKNOWNINTERFACE, %DISP_E_UNKNOWNLCID, %DISP_E_UNKNOWNNAME, %DISP_E_PARAMNOTOPTIONAL
For use with PROCESS GET PRIORITY and PROCESS SET PRIOTRY:
%HIGH_PRIORITY_CLASS, %IDLE_PRIORITY_CLASS, %NORMAL_PRIORITY_CLASS, %REALTIME_PRIORITY_CLASS
For use with THREAD GET PRIORITY and THREAD SET PRIORITY:
%THREAD_PRIORITY_ABOVE_NORMAL, %THREAD_PRIORITY_BELOW_NORMAL, %THREAD_PRIORITY_HIGHEST, %THREAD_PRIORITY_IDLE, %THREAD_PRIORITY_LOWEST, %THREAD_PRIORITY_NORMAL, %THREAD_PRIORITY_TIME_CRITICAL
For use with VARIANTVT:
%VT_EMPTY, %VT_NULL, %VT_I2, %VT_I4, %VT_R4, %VT_R8, %VT_CY, %VT_DATE, %VT_BSTR, %VT_DISPATCH, %VT_ERROR, %VT_BOOL, %VT_VARIANT, %VT_UNKNOWN, %VT_I1, %VT_UI1, %VT_UI2, %VT_UI4, %VT_I8, %VT_UI8, %VT_INT, %VT_UINT, %VT_VOID, %VT_HRESULT, %VT_PTR, %VT_SAFEARRAY, %VT_CARRAY, %VT_USERDEFINED, %VT_LPSTR, %VT_LPWSTR, %VT_RECORD, %VT_FILETIME, %VT_BLOB, %VT_STREAM, %VT_STORAGE, %VT_STREAMED_OBJECT, %VT_STORED_OBJECT, %VT_BLOB_OBJECT, %VT_CF, %VT_CLSID, %VT_VECTOR, %VT_ARRAY, %VT_BYREF
For use with the XPRINT GET COLLATE and XPRINT SET COLLATE statements:
%DMCOLLATE_FALSE, %DMCOLLATE_TRUE
For use with the XPRINT GET COLORMODE and XPRINT SET COLORMODE statements:
%DMCOLOR_MONOCHROME, %DMCOLOR_COLOR
For use with the XPRINT GET DUPLEX and XPRINT SET DUPLEX statements:
%DMDUP_SIMPLEX, %DMDUP_VERTICAL, %DMDUP_HORIZONTAL
For use with the XPRINT GET PAPER, XPRINT GET PAPERS, and XPRINT SET PAPER statements:
%DMPAPER_LETTER, %DMPAPER_TABLOID, %DMPAPER_LEDGER, %DMPAPER_LEGAL, %DMPAPER_STATEMENT, %DMPAPER_EXECUTIVE, %DMPAPER_A3, %DMPAPER_A4, %DMPAPER_A5, %DMPAPER_B4, %DMPAPER_B5, %DMPAPER_FOLIO, %DMPAPER_QUARTO, %DMPAPER_10X14, %DMPAPER_11X17, %DMPAPER_NOTE, %DMPAPER_ENV_9, %DMPAPER_ENV_10
For use with the XPRINT GET TRAY, XPRINT GET TRAYS, and XPRINT SET TRAY statements:
%DMBIN_UPPER, %DMBIN_LOWER, %DMBIN_MIDDLE, %DMBIN_MANUAL, %DMBIN_ENVELOPE, %DMBIN_ENVMANUAL, %DMBIN_AUTO, %DMBIN_TRACTOR, %DMBIN_SMALLFMT, %DMBIN_LARGEFMT, %DMBIN_LARGECAPACITY, %DMBIN_CASSETTE, %DMBIN_FORMSOURCE
See Also