fazthegreat
01-23-2007, 04:15 AM
Hey guys, I'm new to the world of programming.I'm working in vb.net and I'm trying to generate an error message based on what is strored in the variable.
The code is as follows:
Dim ErrMsg as string
ErrMsg=""
If (txt_fname.text = "") then
ErrMsg ="Please enter the following information:" & vbCrLf & "first name"
End if
and so it goes on checking for rest of the empty fields and updating the ErrMsg variable. The problem is that the line break is not working.What am I doin wrong?
The code is as follows:
Dim ErrMsg as string
ErrMsg=""
If (txt_fname.text = "") then
ErrMsg ="Please enter the following information:" & vbCrLf & "first name"
End if
and so it goes on checking for rest of the empty fields and updating the ErrMsg variable. The problem is that the line break is not working.What am I doin wrong?