' Basic program for carriage return / line feed / Next Line.
Dim fName 'Declaration
fName="Dinesh " 'Initialisation
lName= "Jangra" 'Declaration and Initialisation
EmpID= 988
MsgBox fName+LName ' String + String = String
MsgBox fName&LName ' String & String = String
MsgBox fName & vblf &LName ' vblf is for next line
MsgBox fName & vbnewline &LName ' vbnewline is for next line
MsgBox fName & vbcrlf &LName 'vbcrlf is for next line
MsgBox fName & Chr(13) & Chr(10) &LName 'Chr(13) & Chr(10) The character codes for a carriage return and line feed
Dim fName 'Declaration
fName="Dinesh " 'Initialisation
lName= "Jangra" 'Declaration and Initialisation
EmpID= 988
MsgBox fName+LName ' String + String = String
MsgBox fName&LName ' String & String = String
MsgBox fName & vblf &LName ' vblf is for next line
MsgBox fName & vbnewline &LName ' vbnewline is for next line
MsgBox fName & vbcrlf &LName 'vbcrlf is for next line
MsgBox fName & Chr(13) & Chr(10) &LName 'Chr(13) & Chr(10) The character codes for a carriage return and line feed