TestIT:Programming Text

From Nolek Wiki
Revision as of 15:22, 14 August 2019 by NolekAdmin (talk | contribs) (Created page with "==5.3.7 Text== ===StringClear=== '''Description:''' <br /> It will set symbol value to empty string. '''Code example:''' :<code>Text.StringClear(_ST01)</code> {| class="wiki...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

5.3.7 Text

StringClear

Description:
It will set symbol value to empty string.

Code example:

Text.StringClear(_ST01)
Parameters
Parameter Type Description
Symbol String symbol Symbol to clear

StringMove

Description:
It will move text value to symbol.

Code example:

Text.StringMove(_ST01,"New text")
Parameters
Parameter Type Description
Symbol String symbol Symbol to receive result
Value String or String symbol Value or symbol to move

StringConcatenate

Description:
It will combine two symbol values to one text string.

Code example:

Text.StringConcatenate(_ST01,"New ","text")
Parameters
Parameter Type Description
Symbol String symbol Symbol to receive result
Value String or String symbol Value or symbol to move
Value String or String symbol Value or symbol to move

StringMid

Description:
It will return a part of a text value.

Code example:

Text.StringMid(_ST01,"New text", 5, 3)
Parameters
Parameter Type Description
Symbol String symbol Symbol to receive result
Value String or String symbol Value or symbol to move
Start character Int or Int symbol Start character
Number of characters Int or Int symbol Number of characters

StringRemove

Description:
It will remove part of a text value.

Code example:

Text.StringRemove(_ST01,"New text", 4, 3)
Parameters
Parameter Type Description
Symbol String symbol Symbol to receive result
Value String or String symbol Value or symbol to move
Start Index Int or Int symbol Start character
Number of characters Int or Int symbol Number of characters

StringReplace

Description:
It will replace every occurrence of a value with another.

Code example:

Text.StringReplace(_ST01,"New text", "e", "o")
Parameters
Parameter Type Description
Symbol String symbol Symbol to receive result
Value String or String symbol Value or symbol to move
From String or String symbol From character
To String or String symbol To character

StringLength

Description:
It will measure the length of the string.

Code example:

Text.StringLength(_IN01,"New text")
Parameters
Parameter Type Description
Symbol Int symbol or Double symbol Symbol to receive result
Value String or String symbol Value or symbol to move

StringToVal

Description:
It will convert a text value to a number.

Code example:

Text.StringToVal(_IN01,"9")
Parameters
Parameter Type Description
Symbol Int symbol or Double symbol Symbol to receive result
Value String or String symbol Value or symbol to use

StringValueToString

Description:
It will convert a number value to a text value.

Code example:

Text.StringValueToString(_ST01,9)
Parameters
Parameter Type Description
Symbol String symbol Symbol to receive result
Value Int, Double, Bool, Int symbol, Double symbol or Bool symbol Value or symbol to use