IsNumeric Function
|
|
确定一个值是否为数字。
命名空间:
XSharp.RT
程序集:
XSharp.RT (在 XSharp.RT.dll 中) 版本:2.24 GA
Syntax FUNCTION IsNumeric(
uValue AS USUAL
) AS LOGIC
public static bool IsNumeric(
Usual uValue
)
Request Example
查看代码Parameters
- uValue
- 类型:Usual
要检查的值。
Return Value
类型:
Logic
如果值为数字,则返回TRUE;否则返回FALSE。
Return Value
类型:
LogicTRUE if the value is a LONG, FLOAT, IN64 or DECIMAL data type; otherwise, FALSE.
备注
IsNumeric() 等价于 UsualType(uValue = LONG .OR. UsualType(uValue = FLOAT.
Examples
此示例使用 IsNumeric() 来确定应使用的格式:
1IF IsNumeric(uValue)
2 ? Str3(uValue, 7, 2)
3ELSE
4 ? uValue
5ENDIF
See Also