Friday, January 28, 2011

How to join a String with another String

  Dim FirstName As String  
     Dim LastName As String  
     Dim FullName As String  
     FirstName = "Bill"  
     LastName = "Gates"  
     FullName = FirstName & LastName  
     MessageBox.Show(FullName)  

first you have to declare your variables then you have to give each variable a value such as Bill and Gates. From there you add them together with a "&" sign then display it with a messagebox

No comments:

Post a Comment