本文整理自网络,侵删。
program Project1;
{$APPTYPE CONSOLE}
{$R *.res}
uses System.SysUtils;
varstr1:string ='a1232';str2:string ='a1232';begin try
if str1.Compare(str1, str2)=0 then begin write('相同'); end else begin write('不相同'); end; readln; { TODO -oUser -cConsole Main : Insert code here www.delphitop.com } except on E: Exception do Writeln(E.ClassName, ': ', E.Message); end;end.
相关阅读 >>
Delphi 用firedac获取 sql server错误文本信息
Delphi ifileoperation替换shfileoperation
Delphi win32_diskdrive 硬盘 参数说明
Delphi研究之驱动开发篇(六)--利用section与用户模式程
更多相关阅读请进入《Delphi》频道 >>