String Function.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,
whats the equalient string function in vb.net?

VB:
MyString = String(10, "ABC") ' Returns "AAAAAAAAAA".

Thanks
Bala
 
Hi,

Dim myString As New String("ABC", 10)



Ken

----------------------

Hi all,
whats the equalient string function in vb.net?

VB:
MyString = String(10, "ABC") ' Returns "AAAAAAAAAA".

Thanks
Bala
 
If you want to repeat a character then you can always do it this way too:

Dim strRepeated As String = StrDup(10, "A")
 
Crouchie1998 said:
If you want to repeat a character then you can always do it this way too:

Dim strRepeated As String = StrDup(10, "A")

Alternatively you can pass "A" as a character ('"A"c').
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top