<< Click to Display Table of Contents >>
Manual > Control Reference > Route > Route Methods >
Converts a string representation of a value used in a script to a value.
syntax
CScriptTo(
val
)
Parameters
Type:
character
The value to convert.
Return Value
General purpose
The converted value.
Explanation
It converts the representation string used in the script, such as c(1,2,3,4), into a value. It can be used to convert a value representation string converted by the CScript method back into a value.
Example
// str is the string "c(1,2,3,4)" var str = ::CScript(c(1,2,3,4)); // a is the value c(1,2,3,4) var a = ::CScriptTo(str);
Supported
○
Script Action
Can be used in server script Ver2 actions
Browser script
Can be used in browser scripts
Calculation Expression Syntax
Can be used in expression syntax (e.g. bind syntax)
reference
CBool
CNum
CStr
CBit
CTime
CScript
CScriptTo
CNumStr (NS)
CTimeStr (TS)
CTimeSpanStr
CDurationStr
CNumToHex
CNumToOct
CNumToBin
CNumToExp
CHexToNum
COctToNum
CBinToNum
CNumToComma
CCommaToNum
CLinearToPf
CPfToLinear
CTable
CValidTable