DText()
- Last UpdatedNov 23, 2020
- 1 minute read
返回两个可能字符串中的一个,具体取决于 Discrete 参数的值。
类别
字符串
语法
StringResult = DText( Discrete, OnMsg, OffMsg );
参数
Discrete
布尔值或布尔属性。
OnMsg
当 Discrete 的值等于 true 时所显示的消息。
OffMsg
当 Discrete 等于 false 是所显示的消息。
示例
StringResult = DText(me.temp > 150, "Too hot", "Just right");