User Tools

Site Tools


syntax:functions:system

System(keyword)

Returns system values. They keyword must be a text constant. Reference to a field or parameter not allowed.

Currently supported keywords:

Keyword Result
user The current Windows user.
projectpath The full path to the current project including file name.
projectfilename Current project’s file name only, without extension.
projectdir 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.
projectappversionThe version of application that created current project

Example

Example Result
system('projectpath') C:\Documents\myproject.morph

See also

1)
The calling project is the project that contains the Call or Iterate transformation that called the current project
syntax/functions/system.txt · Last modified: 2018/12/24 03:17 by dmitry