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

AVEVA™ InTouch HMI

Text()

  • Last UpdatedOct 08, 2024
  • 1 minute read

指定した形式に基づいて数値をテキストに変換します。

カテゴリ

文字列

構文

StringResult = Text( Number, Format );

パラメータ

数値

数値または数値属性。

形式

変換に使用する形式。実際の文字列または文字列属性。

Text(66,"#.00"); ' 戻り値 66.00;

Text(22.269,"#.00"); ' 戻り値 22.27;

Text(66,"#.00");'戻り値66.00;

次の例は、この関数を別の関数内で使用する方法を示します。

LogMessage(「FreezerRoomTempの現在の値は:」+テキスト(「#.#」);

次の例では、MessageTag は "One=1 Two=2" に設定されます。

MessageTag="One+"+Text(1,"#")+StringReplicas(32)+"Two+"+Text(2,"#");

次もご確認ください。

StringFromIntg()

StringToIntg()

StringFromReal()関数

StringToReal()

In This Topic
Related Links