Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Padding with spaces

Status
Not open for further replies.

flanakin

Programmer
Mar 21, 2000
158
US
I need to pad a string with spaces. How can I do this? Is there a function? Or, do I just need to create my own?

Thanks in advance.

Cid
ciddivine@yahoo.com

 
Cid,

Use the Space function
Code:
<script language=&quot;vbscript&quot;>
 Dim strSpaces
 strSpaces = Space(15)
 MsgBox(&quot;|&quot; & strSpaces & &quot;|&quot;)
</script>
Later, Rob
robschultz@yahoo.com
-Focus on the solution to the problem, not the obstacles in the way.-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top