Advertisement
Advertisement
| 07.21.2008 at 04:22PM PDT, ID: 23583739 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: |
Public Function Convert_barcode(ByVal s2 As String) As String
Dim bcode As Integer
If (s2.Length > 0) Then
If s2.ToUpper Like "CA" Then
bcode = -10
Response.Write(bcode)
End If
If s2.ToUpper Like "PU" Then
bcode = -15
Response.Write(bcode)
End If
If Not ((s2.ToUpper Like "CA") Or (s2.ToUpper Like "PU")) Then
bcode = CInt(s2)
End If
End If
Return "bcode"
End Function
"when returned to the calling sub procedure the bcode value is empty"
Protected Sub txtBarcode0_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtBarcode0.TextChanged
Convert_barcode(txtBarcode0.Text)
txtBarcode0.Text = CStr(CInt(Session("bcode")))
If (txtBarcode0.Text) = "-10" Then
Exit Sub
End If
If (txtBarcode0.Text) = "-15" Then
Exit Sub
End If
check_availability(txtBarcode0.Text)
If CInt(Session("rtrnvalue")) = 0 Then
lblbcodeerror.Visible = True
txtBarcode0.Text = ""
End If
End Sub
|