Convert this from VB6 to VB.Net

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

Hi, I can't figure out how to convert this to VB.Net (without using a
horrible loop). The code below declares a string, then sets it to
"**********". Is there a method hiding somewhere to do this VB.Net?

Thank you
Peter


Dim s As String
s = String(10, "*")
 
Dim s As New String("*", 10)


--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing
 
* (e-mail address removed) (Peter) scripsit:
Hi, I can't figure out how to convert this to VB.Net (without using a
horrible loop). The code below declares a string, then sets it to
"**********". Is there a method hiding somewhere to do this VB.Net?

Dim s As String
s = String(10, "*")

\\\
Dim s As String = StrDup(10, "*"c)
Dim t As New String("*"c, 10)
///
 
Hi,
Hi, I can't figure out how to convert this to VB.Net (without using a
horrible loop). The code below declares a string, then sets it to
"**********". Is there a method hiding somewhere to do this VB.Net?

Thank you
Peter


Dim s As String
s = String(10, "*")

Dim s As New String("*", 10)



Regards,
 
Back
Top