VB Code:
Private Sub Form_Load() Label2.Caption = "SSL + SET" & "digital cash" 'the first instr will return 1 'the second instr will return 10 'if u do a And operation on 1 And 10 it will return 0 (false) If InStr(Label2.Caption, "SSL + SET") And _ InStr(Label2.Caption, "digital cash") Or _ InStr(Label2.Caption, "SSL + SET") Then MsgBox "sdfasd" End If MsgBox 1 And 10 'u should do it like this : If InStr(Label2.Caption, "SSL + SET") <> 0 And _ InStr(Label2.Caption, "digital cash") <> 0 Then '. '. End Sub




Reply With Quote