ASP Best Practices

Previous Topic Next Topic

String Function

Use the String(number,character) function to create a character string consisting of repeated characters. For example, to create a string of 12 asterisks:

Dim strAstString
strAstString = String(12,"*")

The String() function takes character codes and string expressions as arguments, but is less verbose than the For… loop.


© 1997-1999 Microsoft Corporation. All rights reserved.