Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

StringASCII()

  • Last UpdatedSep 24, 2024
  • 1 minute read

返回指定字符串中第一个字符的 ASCII 值。

类别

字符串型

语法

IntegerResult = StringASCII( Char );

参数

Char

字母数字字符或字符串或字符串属性。

附注

在处理此函数时,仅测试并影响单个字符。如果为 StringASCII 提供的字符串中包含一个以上字符,则仅测试字符串中的第一个字符。

示例

StringASCII("A"); ' 返回 65;

StringASCII("A Mixer is Running"); ‘ 返回 65;

StringASCII("a mixer is running"); ‘ 返回 97;

另请参阅

StringChar()

StringFromIntg()

StringFromReal()

StringFromTime()

StringInString()

StringLeft()

StringLen()

StringLower()

StringMid()

StringReplace()

StringRight()

StringSpace()

StringTest()

StringToIntg()

StringToReal()

StringTrim()

StringUpper()

Text()

In This Topic
Related Links