The following file item attributes can be queried in the format $#fileItem[!ATTRIBUTENAME].
Attribute-Id |
Value(s) and Description |
|||||
!PATH |
path full path of file attached to the file item |
|||||
!DRIVE |
driveletter drive letter (without trailing ':') of file attached to the file item |
|||||
!DIRECTORY |
directory directory (without trailing '\') of file attached to the file item |
|||||
!NAME |
filename name of file attached to the file item |
|||||
!EXTENSION |
filetype extension|type (without leading '.') of file attached to the file item |
|||||
!CREATED |
creationdatetime (yyyy.mm.dd hh.mm.ss) creation date and time of file attached to the file item |
|||||
!MODIFIED |
modificationdatetime (yyyy.mm.dd hh.mm.ss) last modification date and time of file attached to the file item |
|||||
!ATTRIBUTES |
DIRECTORY| SYSTEM|HIDDEN|NORMAL type attributes of file attached to the file item |
|||||
!ACCESS |
READ|WRITE|APPEND access attributes of file attached to the file item |
|||||
!SIZE |
filesize, size of file attached to the file item in bytes |
|||||
!TYPE |
FILE|LIST|TEXT|SECTION|XML type of file item (set in NEW command) |
|||||
!SHELL |
ownershellid id of shell creating the file item (8 hex digits) |
|||||
!USERS |
numusers number of linked items sharing the file item |
|||||
!LASTACCESS |
lastaccesseddatetime (yyyy.mm.dd hh.mm.ss) date and time of the last access to the file attached to the file item |
|||||
!CHANGED |
|
|
Attribute-Id |
Value(s) and Description |
!BININFO |
number of sections After a LIST command index of last loaded/saved section After a LOAD command -1 If the file is not a binary file, or the last command failed. |
The GDX file item supports the following attributes in addition to the general file item attributes.
!DATA
The !DATA attribute returns data from the GDX file.
$#gdx[!DATA] // returns all the data
$#gdx[!DATA,index,count] // returns one or more columns
index determines the first column, and count the number of columns to return.
!DATATYPE
The !DATATYPE attribute returns the data type of this GDX file (See Creating a GDX file for details).
!NCOL
The !NCOL attribute returns the number of columns.
!NROW
The !NROW attribute returns the number of rows.
!NWRITTEN
The !NWRITTEN attribute returns the number of columns which have been written (rather than defined).
General attributes of XML file items
Attribute-Id |
Value(s) and Description |
!XROOT |
root_element_name tag name of the root element |
!XPARENT |
parent_element_name tag name of the parent element |
!XPARENTPATH |
root_element_name\..\parent_element_name full path of the parent element |
!XELEMENTS |
elementcount number of elements on selected element level |
!XNODETYPE |
ELEMENT|COMMENT|PROC|DOCTYPE type of the selected node |
Attributes of the selected element of a XML file item
Attribute-Id |
Value(s) and Description |
|||||||||||||||
!XALL |
- |
tag empy cdata childs size nattr attr0 … attrN-1 returns a list of all element parts:
|
||||||||||||||
!XTAG |
- |
element_tag |
||||||||||||||
!XATTRIBUTES |
- |
number_of_attributes |
||||||||||||||
!XATTRIBUTE |
index |
attribute_name name of attribute number index |
||||||||||||||
!XATTRIBUTE |
name |
attribute_value value of attribute named name |
||||||||||||||
!XEMPTY |
- |
returns 1 if element is empty (no data) and 0 otherwise |
||||||||||||||
!XCDATA |
- |
returns 1 if element contains a CData section and 0 otherwise |
||||||||||||||
!XCHILDS |
- |
returns number of child elements of the selected element |
||||||||||||||
!XSIZE |
- |
size of data section in characters |
||||||||||||||
!XDATA |
- |
content of data section |
||||||||||||||
|
|||||||||||||||||||||||
Attribute-Id |
Sub-Id 1 |
Sub-Id 2 |
Value(s) and Description |
||||||||||||||||||||
!XDTNAME |
- |
- |
name of document type definition |
||||||||||||||||||||
!XDTROOT |
- |
- |
tag of root element |
||||||||||||||||||||
!XDTELEMENTS |
- |
- |
number of defined element types |
||||||||||||||||||||
!XDTELEMENT |
index or tag |
- |
definition of element type with specified index or tag; The result is: tag parent base nobase data with:
|
||||||||||||||||||||
!XDTCHILDREN |
tag |
- |
number of children defined for element tag |
||||||||||||||||||||
!XDTCHILD |
tag |
cindex or ctag |
definition of child cindex or ctag of the element tag. The result is: ctag min max with:
|
||||||||||||||||||||
!XDTATTRIBUTES |
tag |
- |
number of attributes defined for element tag |
||||||||||||||||||||
!XTDATTRIBUTE |
tag |
aindex or aname |
definition of attribute aindex or aname of element tag. The result is: aname req vis val type params with:
|
||||||||||||||||||||
Sub-Id1:
Value(s) and Description: