# System Arrays

Version Ref: 5.0

@ALLFILES[]

Contains a list of all files open by filePro, even those closed due to dynamic open/close. Some entries may be blank, representing an unused (i.e. closed) file.

Note: also known as "@OCFILE[]"

@CMDLINE[]

Contains the command line passed to *clerk/*report.

Note: also known as "@ARGV[]"

@DIRLIST[]

Description:

Contains the full directory line as returned by NEXTDIR() including the following:

Description | Length | Starting Position
Format | 32 | 01
Space | 01 | 33
Extension | 10 | 34
Space | 01 | 44
File Size | 14 | 45
Space | 01 | 59
File Date | 10 | 60
Space | 01 | 70
File Time | 8 | 71
A or P (am/pm) | 01 | 79
Space | 01 | 80
Full Name | 32 | 81

Table 1 - NEXTDIR Line

Example:

dl = @dirlist(n)

where dummy field "dl" is set to the value for @dirlist array subscript number "n".

@CMDLINE[]

Contains the command line passed to *clerk/*report.

(Note: also known as "@ARGV[]")

@DIRLIST_EXT[]

Contains the 10 character extension name (as returned starting in column 34 by NEXTDIR). See table 1.

@DIRLIST_FILENAME[]

Contains the 32 character full name (as returned in the last column by NEXTDIR). See table 1

@DIRLIST_NAME[]

Contains the 32 character format name (as returned in the first column by NEXTDIR). See table 1

@FPFILES[]

Contains a list of all open filePro files. Some entries may be blank, representing an unused (i.e. closed) file.

Note: @FPFILES["1"] is always the main filePro file.

@FSTAT[]

Contains information about the last successful EXISTS()

Function. (See your O/S manual for a description of each entry.) All entries are numeric, except for the date/time entries, which are returned as (10,mdyy/) and (8,TIME) respectively,

Ø [0] = length of array (currently always 14)

Ø [1] = st_dev

Ø [2] = st_ino

Ø [3] = st_mode

Ø [4] = st_nlink

Ø [5] = st_uid

Ø [6] = st_gid

Ø [7] = st_rdev

Ø [8] = st_size

Ø [9] = st_atime_date (date portion of st_atime)

Ø [10] = st_atime_time (time portion of st_atime)

Ø [11] = st_mtime_date

Ø [12] = st_mtime_time

Ø [13] = st_ctime_date

Ø [14] = st_ctime_time

Notes:

If no call to EXISTS() has been executed, or the last EXISTS() failed, then the contents of @FSTAT[] are undefined.

Array subscript "0" contains the length of the array. Out-of-bound subscript references return null.

System arrays are read-only.

@FUZZY[]

Contains information about the most recent fuzzy browse lookup.

Currently, the only info available is the record number, via @FUZZY.RECNO[subscript]

@LICENSE[]

5.6 Contains license information.

Subscripts:

- [1] = A comma-separated list of licensed features.

- [2] = Name

- [3] = Serial number

- [4] = Platform

- [5] = Product name

- [6] = Version

- [7] = User count

- [8] = License start date (YYMD format)

- [9] = License end date (YYMD format)

Example

msgbox "Licensed user Name"<@license["2"]

Note: License start date and License End date are null is the license does not specify a start or end date.

@SYSFILES[]

Contains a list of all open files. Some entries may be blank, representing an unused (i.e. closed) file.

@UNAME[]

Returns the system uname() information. The meaning of each entry is system-specific.

[1] = sysname

[2] = nodename

[3] = release

[4] = version

[5] = machine

For Window's systems, the following values are returned.

Sysname: Win9x, WinNT, or Windows (if no specific type).

Nodename: The value from the C programming function "GetComputerName()".

Version: Value of szCSDVersion from the C programming function "GetVersionEX()".

Machine: blank