PDef函数
用于返回指定的点数据是否定义。
格式
PDef (点数据)
参数
- 点数据
- 以整数值、P编号、P(表达式)、点标签进行指定。有关兼容性的注意事项不能将点数据自变量指定为变量。要使用变量时,请记述为Pdef(P(varName)。
返回值
如果已定义点文件,则返回“True”;如果不是,则返回“False”。
参阅
Here、Pdel
PDef函数使用示例
If Not PDef(1) Then
Here P1
Endif
Integer i
For i = 0 to 10
If PDef (P(i)) Then
Print "P(";i;") is defined"
EndIf
Next