Variable Length Strings:
The Strings can be declared using As or $ as shown in the code below; the msg and msg1 are the two strings and they are assigned the values using '='. The value of msg string is displayed followed by space followed by msg1 contents. The yield would be:
Private Sub Command1_Click()
Dim msg As String
Dim msg1$
msg = "distance"
msg1 = "mca"
Form1.Print msg$ & " " & msg1$
End Sub