powered by CADENAS

Manual

Manual

16.2.5.  Functions

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

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

Expression

Meaning

value = TRANSLATE('This is a text')

Translation of 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 text

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

Check if text1 contains text2

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

Separate a text and give back to nth value

value = GETENV('environmentvariable’)

Determine an environment variable

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

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

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

Open a VBS function that returns a number

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

Replace old text with new

ERPENABLED()

Returns .TRUE. if ERP is active

LANGUAGE()

Current language