Posted By

Scooter on 09/13/08


Tagged

strings


Versions (?)

str_repeat


 / Published in: ASP
 

URL: http://reusablecode.blogspot.com/2008/09/strrepeat.html

  1. <%
  2. ' Copyright (c) 2008, reusablecode.blogspot.com; some rights reserved.
  3. '
  4. ' This work is licensed under the Creative Commons Attribution License. To view
  5. ' a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ or
  6. ' send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California
  7. ' 94305, USA.
  8.  
  9. ' Repeat a string.
  10. function str_repeat(input, multiplier)
  11. dim output
  12.  
  13. output = ""
  14.  
  15. for i = 1 to multiplier
  16. output = output & input
  17. next
  18.  
  19. str_repeat = output
  20. end function
  21. %>

Report this snippet  

You need to login to post a comment.