In VB6 you could use this string function
x = string("*", 10)
that would return
x="**********"
Whats the equivelent in VB.net?
Heres an example of how im using it, perhaps theres a better way...
I'll use x as necessary but when I log the fact that I used x I dont want to display the password. I dont know the password, I know the length. I would like to do
x = x.replace(strPassword, "*****") but with the correct number of *'s.
Thanks.
x = string("*", 10)
that would return
x="**********"
Whats the equivelent in VB.net?
Heres an example of how im using it, perhaps theres a better way...
Visual Basic:
strUser = "Rob"
strPassword = "1234"
x = "http://www.domain.com/?userid=" & strUser & "&password=" & strPassword & "&etc&etc"
I'll use x as necessary but when I log the fact that I used x I dont want to display the password. I dont know the password, I know the length. I would like to do
x = x.replace(strPassword, "*****") but with the correct number of *'s.
Thanks.