I IamBot Member Licensed User Longtime User Jul 19, 2012 #1 Hi, This is a silly but short question... How do I check if two texts differs? E.g, to check if they are equal, you can write: IF EditText1.text = EditText2.text then ... So I guess I'm looking for the Not Equal sign... Also, if anyone has any useful link for such questions, I would appreciate it. Thankful for answers...
Hi, This is a silly but short question... How do I check if two texts differs? E.g, to check if they are equal, you can write: IF EditText1.text = EditText2.text then ... So I guess I'm looking for the Not Equal sign... Also, if anyone has any useful link for such questions, I would appreciate it. Thankful for answers...
mc73 Well-Known Member Licensed User Longtime User Jul 19, 2012 #2 Have a look at .CompareTo function. In your specific case, I think that you can also use EditText1.text <> EditText2.text. Upvote 0
Have a look at .CompareTo function. In your specific case, I think that you can also use EditText1.text <> EditText2.text.
Informatix Expert Licensed User Longtime User Jul 19, 2012 #3 IamBot said: Hi, This is a silly but short question... How do I check if two texts differs? E.g, to check if they are equal, you can write: IF EditText1.text = EditText2.text then ... So I guess I'm looking for the Not Equal sign... Also, if anyone has any useful link for such questions, I would appreciate it. Thankful for answers... Click to expand... Not equal: <> You can use EqualsIgnoreCase to ignore case: if Not(Edit1.Text.EqualsIgnoreCase(EditText2.Text)) then Upvote 0
IamBot said: Hi, This is a silly but short question... How do I check if two texts differs? E.g, to check if they are equal, you can write: IF EditText1.text = EditText2.text then ... So I guess I'm looking for the Not Equal sign... Also, if anyone has any useful link for such questions, I would appreciate it. Thankful for answers... Click to expand... Not equal: <> You can use EqualsIgnoreCase to ignore case: if Not(Edit1.Text.EqualsIgnoreCase(EditText2.Text)) then
I IamBot Member Licensed User Longtime User Jul 19, 2012 #4 Thank you guys! It worked very well with my program Upvote 0