S Simonxman Member Nov 25, 2012 #1 Hi guys i need the not equal symbol so i can write if and else correctly if the editbox dose not contain the word "all" it shows some msg sayn that the word dosent exist If EditText1.Text.Contains != "all" Then Msgbox("word dosent exist'","") THANKS A LOT
Hi guys i need the not equal symbol so i can write if and else correctly if the editbox dose not contain the word "all" it shows some msg sayn that the word dosent exist If EditText1.Text.Contains != "all" Then Msgbox("word dosent exist'","") THANKS A LOT
klaus Expert Licensed User Longtime User Nov 25, 2012 #2 You should use: Code: Copy If EditText1.Text.Contains("all") = False Then Best regards. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 25, 2012 #3 Another option (with the non-equal comparator): Code: Copy If EditText1.Text.Contains("all") <> True Then Upvote 0
Another option (with the non-equal comparator): Code: Copy If EditText1.Text.Contains("all") <> True Then
J Jost aus Soest Active Member Licensed User Longtime User Nov 25, 2012 #4 And I would use Code: Copy If Not(EditText1.Text.Contains("all")) Then for better reading by self explaining code. Upvote 0
And I would use Code: Copy If Not(EditText1.Text.Contains("all")) Then for better reading by self explaining code.
BaGRoS Active Member Licensed User Longtime User Oct 19, 2015 #5 Code: Copy if New.CharAt(A) <> "0" Then not working Upvote 0
DonManfred Expert Licensed User Longtime User Oct 19, 2015 #6 BaGRoS said: not working Click to expand... 1. You should have created a new thread for this 2. It is working for me! Code: Copy Dim new As String = "0Hallo0 0world0" For A = 0 To new.Length-1 If new.CharAt(A) <> "0" Then Log(new.CharAt(A)) End If Next ** Activity (main) Create, isFirst = true ** H a l l o w o r l d ** Activity (main) Resume ** ** Activity (main) Pause, UserClosed = false ** ** Activity (main) Resume ** Click to expand... Upvote 0
BaGRoS said: not working Click to expand... 1. You should have created a new thread for this 2. It is working for me! Code: Copy Dim new As String = "0Hallo0 0world0" For A = 0 To new.Length-1 If new.CharAt(A) <> "0" Then Log(new.CharAt(A)) End If Next ** Activity (main) Create, isFirst = true ** H a l l o w o r l d ** Activity (main) Resume ** ** Activity (main) Pause, UserClosed = false ** ** Activity (main) Resume ** Click to expand...
BaGRoS Active Member Licensed User Longtime User Oct 19, 2015 #7 Sorry my mistake Last edited: Oct 19, 2015 Upvote 0
klaus Expert Licensed User Longtime User Oct 19, 2015 #8 What is not working ? What is the content of New ? Upvote 0
BaGRoS Active Member Licensed User Longtime User Oct 19, 2015 #9 Code: Copy Sub edtPattern_TextChanged (Old As String, New As String) 'zmienna pomocnicza Dim A As Int For A=0 To New.Length -1 If New.CharAt(A) <> "0" AND New.CharAt(A) <> "1" Then Log("ERROR") edtPattern.Text = Old Exit End If Next End Sub I made mistake and used OR instead AND :/ Upvote 0
Code: Copy Sub edtPattern_TextChanged (Old As String, New As String) 'zmienna pomocnicza Dim A As Int For A=0 To New.Length -1 If New.CharAt(A) <> "0" AND New.CharAt(A) <> "1" Then Log("ERROR") edtPattern.Text = Old Exit End If Next End Sub I made mistake and used OR instead AND :/