J Jay B. Harlow [MVP - Outlook] Sep 15, 2004 #2 Wally, Have a look at the Microsoft.VisualBasic.Strings.StrDup function, which supports both String & Char. Dim str As String str = StrDup(5, "x"c) str = StrDup(5, "xx") Also String has a constructor that accepts a Char and a count. str = New String("x"c, 5) Note: "x"c is a char literal (the small c says char) "x" is a string literal. Hope this helps Jay
Wally, Have a look at the Microsoft.VisualBasic.Strings.StrDup function, which supports both String & Char. Dim str As String str = StrDup(5, "x"c) str = StrDup(5, "xx") Also String has a constructor that accepts a Char and a count. str = New String("x"c, 5) Note: "x"c is a char literal (the small c says char) "x" is a string literal. Hope this helps Jay