Repeat a character or a string- VB.NET

Tags: VB.NET, VB 2008, VB 2010, VB 2012, VB 2013

The following code is used to repeat a character x amount of times

Dim txt As New String("*"c, 5)

Output: *****
The formula is pretty simple: String("charachter to repeat"c, number of times)

Share This

Home | About | Contact | Privacy Policy

Copyright 2017 - All Rights Reserved.