Dream Tech Blog

A person with no dream in life can never live a happy life.
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

REPLICATE(ByVal value As String, ByVal count As Integer)

Posted on 2004-03-15 18:23  Dream  阅读(1048)  评论(3编辑  收藏  举报
不知道.NET有沒有下面這個功能的系統函數可用

Private Function REPLICATE(ByVal value As String, ByVal count As Integer) As String
Dim s As StringBuilder = New StringBuilder
For i As Integer = 1 To count
s.Append(value)
Next
REPLICATE = s.ToString
End Function