I wish to print into a label the first 3 characters from a text box called txtSurname.text, and a string variable called surname. The current code looks like

Code:
lblRef.Caption = surname & Int(Rnd * 100)
As it is, the full surname prints in the label followed by a random number between 1 and 99. I wish it to print the first 3 letters of the surname followed by the random number.

As far as I know this uses substrings. Could anybody show me how to do this.

The label is lblRef.caption the surname is txtSurname.text