Loading...
 

CX_FILE_INFO

CX_FILE_INFO

Class hierarchy
Description:

This class represents the administrative information of files. In addition to the file name, this is the directory path where the file is stored, the size of the file, the date and time of accesses and changes, and the file attributes. (For reading and writing the file contents, see CX_ASCII_FILE.)

The following attribute values can be set:

Attribute value Description
0x0001 File is read only
0x0002 hidden file
0x0004 System file
0x0010 Directory
0x0020 Archive file
0x0040 encrypted file
0x0080 file has no attributes (this attribute can be
not linked to other attributes
be used)
0x0100 "Temp" file
0x0800 compressed file
0x1000 The data from file is not available (offline)

The attribute values can be combined, e.g. the value 0x0021 means file is archived and read-only.

Code example:
Header(FilesHeader, HIDDEN, 0, 0, 700, 10, Files) { Prompt(name, 0, 0, T("Datei", "File")) Prompt(lastChangeDate, 0, 0, T("Ge„ndert am", "Changed on")) Prompt(lastChangeTime, 0, 0, T("Zeit", "Time")) Prompt(fileSize, 0, 0, T("Gr”áe", "Size")) Prompt(fileAttributes, 0, 0, T("Dateiattribute", "File attributes")) } ObjectListView(Files, AUTO_POSITION, FONT(0), SELECT_MULTIPLE, 11, 12, 700, 30) [ INITIALIZE: [ "lastChangeDate" "lastChangeTime" "name" ] SetSort [ "CX_FILE_INFO::name" COLOR BLUE ] SetFormat [ "CX_FILE_INFO::lastChangeDate" COLOR RED, JUSTIFY_RIGHT ] SetFormat [ "CX_FILE_INFO::lastChangeTime" COLOR RED, JUSTIFY_RIGHT, TF_SECONDS,TF_HUNDREDTHS ] SetFormat [ "CX_FILE_INFO::fileSize" JUSTIFY_RIGHT ] SetFormat [ "CX_FILE_INFO::fileAttributes" ] SetFormat ]
List of methods (MDI)
Function MA* Parameters Return Brief description
CompareTimeOfCreation OBJECT
GetDirectory
199720
STRING Returns the path to the parent directory where the file or folder is located

Data directory (DDI)
Data field Type Reference class I* Brief description
lastAccessTime CX_TIME Time of last access
lastAccessDate CX_DATE Date of last access
lastChangeTime CX_TIME Time of last change
lastChangeDate CX_DATE Date of last modification
creationTime CX_TIME Creation/modification time
creationDate CX_DATE Creation/modification date
fileSize INTEGER File size
name STRING File name
path STRING Full file path
fileAttributes ENUMINT File attributes

* I = Indexable data field

Exemplary use in AppsWH
App Brief description
databaseManage.app

Database management app

fileTools.mod

File Tools Provider

flowChart.mod

flowChartList.app

Flow chart editing