Library Constants

This section describe all public constants available in the PowerScript #xtension Library.
You can easily access them via the usual dot notation.

Null Constants

Constant Data Type Value
NULL_BLOB Blob Null
NULL_BOOLEAN Boolean Null
NULL_CHAR Char Null
NULL_DATE Date Null
NULL_DATETIME Datetime Null
NULL_DEC Decimal Null
NULL_INT Integer Null
NULL_LONG Long Null
NULL_LONGLONG Longlong Null
NULL_REAL Real Null
NULL_STRING String Null
NULL_TIME Time Null
NULL_UINT Unsigned Integer Null
NULL_ULONG Unsigned Long Null


This set of constants avoid to declare a temporary variable of the right data type and to invoke the SetNull() method in order to return a null value, for example instead of writing

string ls_null
SetNull(ls_nul)
...
IF this.of_CheckFiled( al_row, ai_fieldid ) = -1 then
return ls_null
end if
...

You will write:

...
IF this.of_CheckFiled( al_row, ai_fieldid ) = -1 then
    return #.NULL_STRING
end if
...

Data Dictionary Constants

Constant Data Type Value
DICT_CSV Integer 3
DICT_INI Integer 1
DICT_TXT Integer 2
DICT_XML Integer 4

Directory Constants

Constant Data Type Value
DIR_ARCHIVE_FILES Integer 32
DIR_DRIVES Integer 16384
DIR_EXCLUDE_RW_FILES Integer 32768
DIR_HIDDEN_FILES Integer 2
DIR_RO_FILES Integer 1
DIR_RW_FILES Integer 0
DIR_SUBDIR_FILES Integer 16
DIR_SYSTEM_FILES Integer 4

Last edited Nov 26, 2015 at 9:40 PM by domangep, version 2