另外,如何让Text的内容显示成星号的形式?谢谢。

解决方案 »

  1.   

    if Edit1.Text='Good' then Showmessage('ok');第二个用Edit1.PassWordChar:='*';
      

  2.   

    if Uppercase(edit1.text) := uppercase(str1) then
      showmessage('OK');设置 Passwordchar为*
      

  3.   

    if Uppercase(edit1.text) := uppercase(str1) then
      showmessage('OK');设置Edit Passwordchar设为*来晚了
      

  4.   

    if Trim(Edit1.Text) = 'String' then ShowMessage('It's Same!!');
    设置Edit1的属性Passwordchar为*就可以了。
      

  5.   

    如果要去掉空格,可以这样
    if Uppercase(trim(edit1.text)) := uppercase(trim(str1)) then
      showmessage('OK');