警告1 变量“tPhone”在赋值前被使用。可能会在运行时导致空引用异常。是什么意思
WhilemyReader.ReadtID=myReader.GetInt32(0)tAddress=myReader.GetString(1)tPhone=myRead...
While myReader.Read tID = myReader.GetInt32(0) tAddress = myReader.GetString(1) tPhone = myReader.GetString(2) tBankNumber = myReader.GetString(3) End While myConn.Close() MsgBox("客户编号:" & tID & Chr(10) & "客户姓名:" & Me.cbConCustomer.SelectedItem & Chr(10) & "客户电话:" & tPhone & Chr(10) & "客户地址:" & tAddress & Chr(10) & "银行账号:" & tBankNumber, MsgBoxStyle.Information, "提示信息:") Catch ex As Exception MsgBox(Err.Description) End Try
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询