Hi All,
I'm doing the select case coding without hard code into the program, but do it in the alternate way. For example,
If i hard code everything inside the select case statement below, it work fine
BUT
If I try make it in the manual way, it not work already.
The above syntax will return exactly what I hard code above.
What i'm doing wrong the above syntax, please alter for me..
Thanks ....
I'm doing the select case coding without hard code into the program, but do it in the alternate way. For example,
If i hard code everything inside the select case statement below, it work fine
VB.NET:
Select Case sNumber
Case "123", "234"
xxxxx
Case "567", "890"
xxxxx
End Select
BUT
If I try make it in the manual way, it not work already.
VB.NET:
If dr200.Length <> 0 Then
For i = 0 To dr200.Length - 1
If str200 = "" Then
str200 = dr200(i)("sNumber")
Else
str200 = str200 & """, """ & dr200(i)("sNumber")
End If
Next
End If
Select Case sNumber
Case str200
xxxxx
Case "567", "890"
xxxxx
End Select
What i'm doing wrong the above syntax, please alter for me..
Thanks ....