Built-in numeric equates

The compiler provides a convenient set of built-in numeric equates.

The first to consider should be the group which determines the compiler version and the supported feature level.  Additional information may be found with the %DEF equate operator.

Compiler Version:

%PB_CC32, %PB_DLL32, %PB_EXE, %PB_REVISION, %PB_REVLETTER, %PB_WIN32

Compile-Time information:

%PB_COMPILETIME

At each compile, this equate is filled with the current date and time of the compilation in PowerTime binary format.  You can use the PowerTime Class to convert it to a text equivalent for use in your application.

For use with #RESOURCE FILEFLAGS:

%VS_FF_DEBUG, %VS_FF_INFOINFERRED, %VS_FF_PATCHED, %VS_FF_PRERELEASE, %VS_FF_PRIVATEBUILD, %VS_FF_SPECIALBUILD

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_TYPE, %VARCLASS_GUID, %VARCLASS_ASC, %VARCLASS_STRZ %VARCLASS_FIX, %VARCLASS_STR, %VARCLASS_FLD, %VARCLASS_WSTRZ, %VARCLASS_WFIX, %VARCLASS_WSTR, %VARCLASS_WFLD

For use with the DIR$ function:

%NORMAL, %HIDDEN, %SYSTEM, %VLABEL, %SUBDIR

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, %ERR_DIVISIONBYZERO, %ERR_FARHEAPCORRUPT, %ERR_GLOBALMEMORYCORRUPT, %ERR_OVERFLOW

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 GRAPHIC IMAGELIST and XPRINT IMAGELIST:

%ILD_NORMAL, %ILD_TRANSPARENT, %ILD_MASK, %ILD_BLEND25, %ILD_BLEND50

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 PowerArray:

%VT_I2, %VT_UI4, %VT_I4, %VT_I8, %VT_R4, %VT_INT, %VT_R8, %VT_UINT, %VT_CY, %VT_PTR, %VT_DATE, %VT_USERDEFINED, %VT_BSTR, %VT_FILETIME, %VT_DISPATCH, %VT_ASTR, %VT_BOOL, %VT_STRINGFIX, %VT_VARIANT, %VT_WSTRINGFIX, %VT_UNKNOWN, %VT_STRINGZ, %VT_DECIMAL, %VT_WSTRINGZ, %VT_I1, %VT_TYPE, %VT_UI1, %VT_EXT, %VT_UI2, %VT_CURX

For use with PROCESS GET PRIORITY and PROCESS SET PRIORITY:

%HIGH_PRIORITY_CLASS, %IDLE_PRIORITY_CLASS, %NORMAL_PRIORITY_CLASS, %REALTIME_PRIORITY_CLASS

For use with TCP NOTIFY:

%FD_ACCEPT, %FD_CLOSE, %FD_CONNECT, %FD_READ, %FD_WRITE

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_DECIMAL, %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 XPRINT ATTACH CHOOSE:

%PD_ALLPAGES, %PD_SELECTION, %PD_PAGENUMS, %PD_NOSELECTION, %PD_NOPAGENUMS, %PD_COLLATE, %PD_PRINTTOFILE, %PD_PRINTSETUP, %PD_NOWARNING, %PD_RETURNDC, %PD_RETURNIC, %PD_RETURNDEFAULT, %PD_SHOWHELP, %PD_ENABLEPRINTHOOK, %PD_ENABLESETUPHOOK, %PD_ENABLEPRINTTEMPLATE, %PD_ENABLESETUPTEMPLATE, %PD_ENABLEPRINTTEMPLATEHANDLE, %PD_ENABLESETUPTEMPLATEHANDLE, %PD_USEDEVMODECOPIES, %PD_USEDEVMODECOPIESANDCOLLATE, %PD_DISABLEPRINTTOFILE, %PD_HIDEPRINTTOFILE, %PD_NONETWORKBUTTON, %PD_CURRENTPAGE, %PD_NOCURRENTPAGE, %PD_EXCLUSIONFLAGS, %PD_USELARGETEMPLATE, %PD_RESULT_CANCEL, %PD_RESULT_PRINT, %PD_RESULT_APPLY, %PDERR_PRINTERCODES, %PDERR_SETUPFAILURE, %PDERR_PARSEFAILURE, %PDERR_RETDEFFAILURE, %PDERR_LOADDRVFAILURE, %PDERR_GETDEVMODEFAIL, %PDERR_INITFAILURE, %PDERR_NODEVICES, %PDERR_NODEFAULTPRN, %PDERR_DNDMMISMATCH, %PDERR_CREATEICFAILURE, %PDERR_PRINTERNOTFOUND, %PDERR_DEFAULTDIFFERENT

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

For use with Miscellaneous API routines:

%BIF_VALIDATE, %CF_BITMAP, %CF_DIB, %CF_DIBV5, %CF_DIF, %CF_ENHMETAFILE, %CF_HDROP, %CF_LOCALE, %CF_METAFILEPICT, %CF_OEMTEXT, %CF_PALETTE, %CF_PENDATA, %CF_RIFF, %CF_SYLK, %CF_TEXT, %CF_TIFF, %CF_UNICODETEXT, %CF_WAVE, %MAX_FNAME, %MAX_PATH, %MAXIMUM_WAIT_OBJECTS, %OFN_NOCHANGEDIR, %SND_ALIAS, %SND_ALIAS_ID, %SND_APPLICATION, %SND_ASYNC, %SND_FILENAME, %SND_LOOP, %SND_MEMORY, %SND_NODEFAULT, %SND_NOSTOP, %SND_NOWAIT, %SND_PURGE, %SND_RESOURCE, %SND_VALID

 

See Also

Built-in RGB Color Equates

Constants and Literals

Numeric Equates

String Equates

Built-in string equates

Built-in Interfaces

Built-in User Defined Types