String

Create a string with a single character repeated.

Syntax 
      String(Number, character )

Key
   Number      The number of characters.

   character   The character to repeat.

Examples

result = string(25, "#")
WScript.Echo result

“If you want to marry wisely, marry your equal” ~ Spanish Proverb

Related VBScript commands

StrComp - Compare two strings
Equivalent in PowerShell: via multiplication: $result = "#" * 20


 
Copyright © 1999-2024 SS64.com
Some rights reserved