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 - 1 of 1 Answers
Related Answered Questions
Related Open Questions
VbCrLf
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?
Profile Answers by rvija Questions by rvija
Questions by rvija
Related Answered Questions
Related Open Questions