VbCrLf

Hello I would like to know what vbCrLf stands for? How it is used and where it is used?

Private Sub btnCalculate_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles btnCalculate.Click
Try
Dim decMiles As Decimal = Convert.ToDecimal(txtMiles.Text)
Dim decGallons As Decimal = Convert.ToDecimal(txtGallons.Text)
Dim decEfficiency As Decimal = decMiles / decGallons
txtEfficiency.Text = String.Format("{0:n}", decEfficiency)
' each try block should at least have one catch or finally block
' catch blocks should be in order of specific to the generalized
' exceptions. Otherwise compilation generates an error
Catch fe As FormatException
Dim msg As String = String.Format("Message: {0}" & _
vbcrlf & "Stack Trace: " & vbcrlf & " {1}", _
fe.Message, fe.StackTrace)
MessageBox.Show(msg, fe.GetType().ToString())
What does vbcrlf represent here in the Catch statement?

Questions by rvija

Showing Answers 1 - 3 of 3 Answers

chidambaram

  • May 2nd, 2007
 

Hi,

Vbcrlf means carriage return. It is use to give a carriage return while writing in the ASCII file. The file (text) will be wrap so it is easy to read. Also, we can use Chr(13), Vbcr to insert the Carriage Return. 

Regards,
Chidambaram

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions