PSU_Justin
Newcomer
I'm trying to implement a simple conversion utility into my VB program. I want the utility to check my text box to see if it is empty, if it is to leave it empty, if not to run the conversion.
This is the Code I have been working with that doesn't quite work.
I think my problem is related to the is "" statement. I'm not getting a specific error, but it appears that if the text box is blank the loop is jumping to the else statement and failing at the dconv=dtxtbx.text statement. (this is the first time I tried to put code into a post, hope I did it right.)
This is the Code I have been working with that doesn't quite work.
Visual Basic:
Dim dConv As Single
If dTxtBx Is "" Then
dConv = 0
Else
dConv = dTxtBx.Text
dConv = dConv / 3.28083
dTxtBx.Text = dConv
End If
I think my problem is related to the is "" statement. I'm not getting a specific error, but it appears that if the text box is blank the loop is jumping to the else statement and failing at the dconv=dtxtbx.text statement. (this is the first time I tried to put code into a post, hope I did it right.)