Check Tedit (or anything else) twice or more
Posted on 2004-10-01
Hey there :)
Ok, lets say I have a Tedit component named, Edit1
Now if I want to check the value of this to see if it = something you just called
If edit1.text = 'this' then do this
Now what if I want to check it against two things, do I have to do
If (edit1.text = 'this') or If (edit1.text = 'that') then do this
Or is there someway of doing
If edit1.text in ['this','that'] that would work alot better.
Just looking for a 'cleaner' way to code.