KB-20337: StrZero function in E3.

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

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *