VS:Concat: Difference between revisions
Jump to navigation
Jump to search
(move remark from Num2Str to Concat, fix missing braket in example) |
m (Transfer Orso to _c_) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 34: | Line 34: | ||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<remark> | <remark> | ||
[[User:CBM-c-|_c_]], 2015.05.23: You can use [[VS:Concat]] to convert numbers to strings, but it uses exclusively a dot "." as symbol for the decimal marker, it outputs the number as seen from inside VS. See the table below for a list of routines formatting according to your system's settings. | |||
You can use [[VS:Concat]] to convert numbers to strings, but it uses exclusively a dot "." as symbol for the decimal marker, it outputs the number as seen from inside VS. See the table below for a list of routines formatting according to your system's settings. | |||
{| class="wikitable" | {| class="wikitable" | ||
|+ Decimal marker symbol usage | |+ Decimal marker symbol usage | ||
Line 62: | Line 61: | ||
==== VectorScript ==== | ==== VectorScript ==== | ||
<code lang="pas"> | <code lang="pas"> | ||
AlrtDialog(Concat('A', 'sample', 'string'));</code> | |||
==== Python ==== | ==== Python ==== | ||
<code lang="py"> | <code lang="py"> | ||
vs. | vs.AlrtDialog(vs.Concat('A', 'sample', 'string')) | ||
</code> | </code> | ||
</sample> | </sample> |
Latest revision as of 06:14, 30 December 2020
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
Description
Function Concat combines, or concatenates, all the specified parameters in order and returns the resultant string.
FUNCTION Concat(
txt :DYNARRAY[] of CHAR) : DYNARRAY[] of CHAR;
def vs.Concat(txt): return DYNARRAY[] of CHAR
Parameters
txt DYNARRAY[] of CHAR
Remarks
_c_, 2015.05.23: You can use VS:Concat to convert numbers to strings, but it uses exclusively a dot "." as symbol for the decimal marker, it outputs the number as seen from inside VS. See the table below for a list of routines formatting according to your system's settings.
Metric: ',' | American '.' |
---|---|
|
|
Formatting routines: | Non formatting routines: |
|
|
Example
VectorScript
AlrtDialog(Concat('A', 'sample', 'string'));
Python
vs.AlrtDialog(vs.Concat('A', 'sample', 'string'))
Version
Availability: from All Versions