Ich mΓΆchte INT-Werte immer zweistellig anzeigen (bei 9 = 09).
In der Target-Visu funktioniert es mit "%02d".
In der Webvisu wird jedoch trotzdem nur eine 9 statt 09 angezeigt.
WeiΓ hier jemand Abhilfe?
Danke im Voraus
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2010-12-13
Originally created by: jl
Hallo!
Man kann z.B. die INT-Variable zu einer STRING-Variable umwandeln und dieser eine "0" voranstellen:
strVar := '0';
IF intVar < 10 then
strVar := CONCAT(strVar ,INT_TO_STRING(intVar));
ELSE
strVar := INT_TO_STRING(intVar);
END_IF
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Moin...
ich hab eine Frage zur Webvisualisierung:
Ich mΓΆchte INT-Werte immer zweistellig anzeigen (bei 9 = 09).
In der Target-Visu funktioniert es mit "%02d".
In der Webvisu wird jedoch trotzdem nur eine 9 statt 09 angezeigt.
WeiΓ hier jemand Abhilfe?
Danke im Voraus
Originally created by: jl
Hallo!
Man kann z.B. die INT-Variable zu einer STRING-Variable umwandeln und dieser eine "0" voranstellen:
strVar := '0';
IF intVar < 10 then
strVar := CONCAT(strVar ,INT_TO_STRING(intVar));
ELSE
strVar := INT_TO_STRING(intVar);
END_IF