wts equivalent function for replicate in VB.NET
Replicate("0", 8 - Len(varSeq))
Private Function Replicate(ByVal str As String, ByVal Times As Int32) As String
Replicate = String.Empty
For i As Integer = 1 To Times
Replicate += str
Dim s As String = New String("0"c, 8-varSeq.Length)
you'll need to put in guarding code to make sure you do not have a negative number for the repeat.