Question:
Is there a function similar to SCADA’s StrZero in VBScript?
Solution:
No, there is no such function in VBScript. However, this could be worked around with this script:
Dim Str, Size
Str = Screen.Item(“Text1”).Value
Size = Len(Str)
Str = “0000000000” & Str
‘If you want 2 zeroes before the string
Size = Size + 2
Str = Right (Str,Size)
MsgBox Str