KB-28479: Retrieving a string’s size.

Question:

How can I retrieve the number of characters in a string?

Solution:

To do so, use VBScript’s Len function.

Sample script to be executed at a button’s Click event:

Dim Size

Size = Len(“ElipseSoftware”) ‘ Size Variable contains 14.

MsgBox Size

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 *