随笔 - 2146  文章 - 97 评论 - 11767 trackbacks - 253


var
  s1,s2: string;
  b1,b2: Boolean;
begin
  s1 := 'C:\Temp';
  s2 := 'c:\temp';

  b1 := SameText(s1, s2); //True
  b2 := s1 = s2;          //False

  ShowMessage(BoolToStr(b1,True) + ' - ' + BoolToStr(b2,True));
end;

posted on 2009-12-07 15:39  万一  阅读(...)  评论(...编辑  收藏