User Tools

Site Tools


syntax:functions:system

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
syntax:functions:system [2018/12/23 22:17] dmitrysyntax:functions:system [2021/10/25 11:46] – [Currently supported keywords:] dmitry
Line 1: Line 1:
-===== System(keyword) =====+====== System(keyword) =====
 +Category:  Special function
  
-Returns system valuesThey keyword must be a text constant. Reference to a field or parameter not allowed.+\\  
 +=====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 data field reference or parameter.
  
-Currently supported keywords:+\\  
 +=====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  ^ ^  Keyword  ^  Result  ^
-| user |The current Windows user. |  +| 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. |  +| projectpath |The full path to the current projectincluding file name. |  
-| projectfilename |Current project’s file name only, without extension. |  +| projectfilename |The current project’s file name only, without the extension. |  
-| projectdir |Current project’s directory. |  +| projectdir |The current project’s directory. |  
-| callerpath |The full path to the calling project ((The calling project is the project that contains the [[transformations:call|Call]] or [[transformations:iterate|Iterate]] transformation that called the current project)) including file name. |+| callerpath |The full path to the calling project ((The calling project is the project that contains the [[transformations:call|Call]] or [[transformations:iterate|Iterate]] action that called the current project))  including file name. |
 | callerfilename |The file name (without extension) of the calling project. | | callerfilename |The file name (without extension) of the calling project. |
 | programdir |The full path to morph.exe. |  | programdir |The full path to morph.exe. | 
Line 15: Line 26:
 | utcoffset |The UTC offset to the system time zone ( e.g. "-04:00:00"). | | utcoffset |The UTC offset to the system time zone ( e.g. "-04:00:00"). |
 | tempdir |The current temporary directory. | | tempdir |The current temporary directory. |
-| projectappversion|The version of application that created current project |+| projectappversion|The version of the application that created current project | 
 + 
 + 
 +\\  
 +=====Examples=====
  
-**Example** +  system('projectpath'= "C:\Documents\myproject.morph"
-^  Example  ^  Result +
-system('projectpath' |C:\Documents\myproject.morph |+
  
-**See also**+  system('projectfilename') = "myproject.morph"
  
-  * [[syntax:functions:today]] 
-  * [[syntax:functions:now]] 
  
 +\\ 
 +=====See also=====
 +  * [[syntax:functions:metadata|Metadata(keyword)]]
 +  * [[syntax:functions:now|Now()]]
 +  * [[syntax:functions:today|Today()]]
syntax/functions/system.txt · Last modified: 2021/11/22 07:38 by dmitry

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki