Update cookies preferences
Promotic

CStr - function of language VBScript

Description:
Returns an expression that has been converted to the value of the String type.
In the PROMOTIC system it is better to use the PmFormat object, see for example Examples for Float type.
Syntax:
String CStr(Variant expression)
Parameters:
expression(Variant) Any valid expression. The value in expression specifies what is returned according to the following table:
Boolean - a string containing true or false
Date - a string containing a date in the short-date format of your system
Null - a runtime error
Empty - Empty string ("")
Other numeric - Text string containing the number
Note:
The conversion functions can be used e.g. if you want some operation result to be expressed as a particular data type (rather than the default data type of the operation). For example, use CStr function to force the result to be expressed as a String.
You should use the CStr function to provide internationally aware conversion from any other data type to the value of the String type. For example, different decimal separators are properly recognized depending on the locale setting of Windows system.
Example:
VBScriptSelect and copy to clipboard

Dim nDouble, sString
nDouble = 437.324
sString = CStr(nDouble)   ' sString contains "437.324"
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.