Date Functions
f-bookda
The function returns Today’s date.
ReturnType: Date
AppliesTo: Data
Used as:
v-date = f-bookda().
f-bookyear
This function returns the current year in 4 digits.
ReturnType: Integer
AppliesTo: Data
Used as:
v-year = f-bookyear().
f-today
This function returns the current date.
ReturnType: Date
AppliesTo: Data
Used as:
v-today = f-today().
f-shortyear
The function returns the last 2 digits of the current year.
ReturnType: Date
AppliesTo: Data
Used as:
v-year = f-shortyear().
f-xe-xfilesfiles
This function returns all XFILES (Table) with a comma separated list.
ReturnType: Character
AppliesTo: Data
Used as:
v-files = f-xe-xfilesfiles().
f-xe-CreateDir
This function creates number of directories recursively, searches filename in the dir string, if exists then it ignores the directory with file name.
ReturnType: Integer
AppliesTo: Data
Used as:
v-create = f-xe-CreateDir(p-dir).\* in this example value of p-dir may be ‘c:\aaa\bba\cca\dd’*/
Input Parameter
Parameters | Data Type | Description |
---|---|---|
p-dir | Character | Directory |
f-xegetlinkdb
This function returns the name of the database, of the same level as the current Database.
ReturnType: Character
AppliesTo: Data
Used as:
v-dbname = f-xysfield(p-xdatc).\* in this example value of p-xdatc may be xfiles */
Input Parameter
Parameters | Data Type | Description |
---|---|---|
p-xdatc | Character | Database name |
f-xysfield
The function ,if input is a field in xsystem table, this returns the value stored in the field else returns the setting value from xsetting table with record whose input matches setting code.
ReturnType: Character
AppliesTo: Data
Used as:
v-value = f-xysfield(v-field).\* in this example value of v-field may be ‘xsystwebserver’ which returns “c:\inetpub\wwwroot\dir\images”*/
Input Parameters
Parameters | Data Type | Description |
---|---|---|
v-field | Character | Setting Code |