syntax:functions:system
This is an old revision of the document!
Table of Contents
System(keyword)
Category: Special function
Description
This function returns the system value specified by the keyword argument. The keyword must be a text constant from the table below and may not be a data field reference or parameter.
Arguments
Argument | Type | Description |
---|---|---|
keyword | Text | One of the text constants from the table below specifying the system data desired. |
Return value type: Text (one of the Result values from the table below)
Currently supported keywords:
Keyword | Result |
---|---|
user | The Windows account of the current user. On EasyMorph Server, it's the account of the worker that executes the project. |
projectpath | The full path to the current project, including file name. |
projectfilename | The current project’s file name only, without the extension. |
projectdir | The current project’s directory. |
callerpath | The full path to the calling project 1) including file name. |
callerfilename | The file name (without extension) of the calling project. |
programdir | The full path to morph.exe. |
currentdir | The working directory. |
utcoffset | The UTC offset to the system time zone ( e.g. "-04:00:00"). |
tempdir | The current temporary directory. |
projectappversion | The version of the application that created current project |
Examples
system('projectpath') = "C:\Documents\myproject.morph"
system('projectfilename') = "myproject.morph"
See also
syntax/functions/system.1635176814.txt.gz · Last modified: 2021/10/25 11:46 by dmitry