Insert a string in a specific position - VB.NET

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

The following tutorial will show you how to insert a string inside another string (at a specific position)


Dim FirstName As String = "Dominic"
Dim LastName As String = "Alphonso"
Dim FullName As String
Dim MiddleName As String = "Eric"
FullName = "My name is " & FirstName & " " & " " & LastName
FullName = FullName.Insert(19, MiddleName)
MsgBox(FullName)


insert a string in visual basic


Share This

Home | About | Contact | Privacy Policy

Copyright visual-basic-tutorials.com 2017 - All Rights Reserved.