|
Ansoft Designer / Ansys Designer 在线帮助文档:
Script Guide > VBScript Operators > Converting Between Data Types
Converting Between Data Types
To convert data from one subtype to another, use
the following VBScript functions:
CStr
|
Syntax: CStr(variablename).
Converts variablename
to a string. For example, it can be used to convert the number 2.5 to
the string “2.5”.
|
CBool
|
Syntax: CBool(variablename).
Converts variablename
to a boolean. If variablename is 0 or “0”,
CBool returns False.
Otherwise it returns True.
|
CDbl
|
Syntax: CDbl(variablename).
Converts variablename
to a double precision number. For example, it can be used to convert
the string “2.5” to the
number 2.5.
|
CInt
|
Syntax: CInt(variablename).
Converts variablename
to an integer.
|

HFSS视频教程
ADS视频教程
CST视频教程
Ansoft Designer 中文教程
|
|