摘要: 1、functionComparastr(const s1,s2: string):Integer;比较两字符串,区别大小写; 注:由于此函数操作是基于每个条件的8位序数值,所以返回的结果,如果 s1<s2 就返回小于0 如果相等就为 0 返回就大于零; 众所周知,DELPHI语言不区分大小写,但是有的时候,在设计密码登录时为加强安全性而需要区分;funcgtioncheckpassword(s1:string):boolean;begin Result := CompareStr(s1,'Joe')=0 ;end;有一个类似的函数functionSameText(con 阅读全文
posted @ 2012-05-25 15:34 吞硬币的小猪 阅读(180) 评论(0) 推荐(0) 编辑