IsString Function
|
|
确定一个值是否为字符串。
命名空间:
XSharp.RT
程序集:
XSharp.RT (在 XSharp.RT.dll 中) 版本:2.24 GA
Syntax FUNCTION IsString(
uValue AS USUAL
) AS LOGIC
public static bool IsString(
Usual uValue
)
Request Example
查看代码Parameters
- uValue
- 类型:Usual
要检查的值。
Return Value
类型:
Logic
如果值是字符串,则返回TRUE;否则返回FALSE。
备注
Examples
此示例使用 IsString() 确定是否需要向用户查询文件名:
1FUNCTION TBDemo(cFile)
2 IF !IsString(cFile)
3 cFile := Space(12)
4 ? "输入正确的文件名"
5 ENDIF
See Also