if SysUtils.CompareStr(Str,'dashan_zhang')=0 then … 使用CompareStr 函数 转载于:https://www.cnblogs.com/dashan9zj/archive/2009/02/09/1387000.html