"numstr" is the input variable. It is set to receive data from another TextBox (TextBox9)which receives data from SQL Server.
"newstr" is the output variable. It is set to output to TextBox10.
TextBox9 is the numerical dollar amout on a check, while TextBox10 is the "word" dollar amount on a check. Just thought that info might help.
Why do you think I get this warning?
Warning 1 Variable 'newstr' is used before it has been assigned a value. A null reference exception could result at runtime.
Some code below:
Private Sub NTW_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NTW.Click
Dim numstr As String
Dim newstr As String
Dim tempstr As String = ""
numstr = TextBox9.Text
TextBox10.Text = newstr
If numstr >= 10 ^ 3 Then ' thousand
newstr = Int(numstr / 10 ^ 3)
ElseIf newstr <> 0 Then
tempstr = tempstr & newstr & "thousand "