VBScript: Strings, You Can`t Function without Them - The String Function
(Page 5 of 6 )
The String() function repeats a character in a string a certain number of times:
<html>
<body>
<script type="text/vbscript">
document.write(String(10,"Happy Meal"))
document.write(String(10,"~"))
document.write(String(1,"]"))
</script>
</body>
</html>
The result is a sideways-looking dynamite igniter:
HHHHHHHHHH~~~~~~~~~~]
Next: StrReverse() >>
More Windows Scripting Articles
More By James Payne