Axaptapedia is now maintained by AgileCadence For more information please click here.
Value2String
From Axaptapedia
Value2String[edit]
Syntax[edit]
<xpp> str value2String(AnyType value[, Types theType]) </xpp>
Description[edit]
Converts the value to the equivalent text string. Value may by anytype, you can set the type of the value or live the default.
Example[edit]
<xpp> date d = str2date("2006-05-16", 321); int i = 123; real r = 32.2; str s = "foo";
value2String(d); //returns the text string "2006516". value2String(i); //returns the text string "123". value2String(r); //returns the text string "32.20". value2String(s); //returns the text string ""foo"". </xpp>
Note[edit]
We can use Value2String or strFmt function to convert value to string. Ex. Data type may not corect convert.
Value2String is defined in the Global class.