6.1.5.  Functions

Note: value must be replaced by the parameter to be changed in the examples. This results in the following expression, for example:

LINA= TRANSLATEVALUE('LINA','english') --> The return value of LINA is to be translated into English.

Expression

Meaning

value = TRANSLATE('This is a text')

Translating a text

value = TRANSLATEVALUE('NB','english')

Returns the value of a variable/constant in a specific language

value = TRANSLATEVALUE('LINA','english')

Example

LINA= TRANSLATEVALUE('LINA','english')

The Lina is shown in the German environment in English.

value = TRANSLATEVALUE('SHORTNB','english')

 

value = TRANSLATEVALUE(constant, 'language')

Translate a constant e.g. CATALOG_DESC

value = LEN('Text')

Length of the text

value = CONTAINS(' text1','text2')

Check whether text1 contains text2

value = TOKEN(text,separator,quote,n)

Splitting a text and returning the nth value

value = GETENV('environmentvariable')

Determining an environment variable

value = TSCRIPT('modul.function',param1,param2)

Calling a VBS function that returns a text (return value is a text)

value = ZSCRIPT('modul.function',param1,param2)

Calling a VBS function that returns a number

value = REPLACE('old value','old','new')

Replace the text old with new

ERPENABLED()

Returns .TRUE. if ERP is activated

LANGUAGE()

Current language