Hi guys,
I am having trouble comparing a input string to a table column from the sql database. As my program logic is. if the string handphone number = to the data in the database column, then it will execute the alarm, else it will not.
So i have put something like
the code, If pnum = dsColumn("handphoneNumber") Then, will do the comparasion.
Cause now i'm using this method to compare but i'm getting the error something like dbnull.
regards,
clzanas
I am having trouble comparing a input string to a table column from the sql database. As my program logic is. if the string handphone number = to the data in the database column, then it will execute the alarm, else it will not.
So i have put something like
VB.NET:
If pnum = dsColumn("handphoneNumber") Then
MsgBox("Fire Alert")
MySoundPlayer.SoundLocation = _
"E:\My documents\TP\sem 6 MPSIP\more to project\mpsip things needed\work from here!!\AUTO INCOMING SMS\Sound Effect - Police Siren 02.wav"
MySoundPlayer.Load()
MySoundPlayer.Play()
' read.Close()
' conn1.Close()
myCommand1.Parameters.Clear()
End If
the code, If pnum = dsColumn("handphoneNumber") Then, will do the comparasion.
Cause now i'm using this method to compare but i'm getting the error something like dbnull.
regards,
clzanas