Create string from several parts

Syntax

s.from(s1 [s2 ...])

 

Parameters

s - str variable.

s1, s2, ... - string or numeric values.

 

Remarks

str does not support expression s = s1 + s2 to join strings. For this purpose use function from.

 

Tip: To append other string to the end or beginning of s, you can use operator + or -. See example.

 

See also: str.format, str.fromn, str.addline, strings with variables.

 

Examples

str s("notepad") ss
ss.from(s ".exe") ;;now ss is "notepad.exe"
ss=s; ss+".exe" ;;the same