Jquery中文网 www.jquerycn.cn
Jquery中文网 >  脚本编程  >  Delphi  >  正文 delphi 文本比较函数AnsiStartsText和SameText的用法

delphi 文本比较函数AnsiStartsText和SameText的用法

发布时间:2011-10-12   编辑:www.jquerycn.cn
jquery中文网为您提供delphi 文本比较函数AnsiStartsText和SameText的用法等资源,欢迎您收藏本站,我们将为您提供最新的delphi 文本比较函数AnsiStartsText和SameText的用法资源
1.AnsiStartsText function AnsiStartsText(const ASubText, AText: string): Boolean; Indicates whether one string is a (case-insensitive) prefix of another. 指出 ASubText 是否是AText的前缀字符,若是,返回True,否则False,不区别大小写 if AnsiStartsText('ABC','ABC news') then Edit1.text:='YES'; //此列将返回True,Edit1.text 显示 YES 2.SameText function SameText(const S1, S2: string): Boolean; Compares two strings by ordinal value without case sensitivity. SameText compares S1 and S2 and returns true if they are equal. SameText is not case sensitive and is not affected by the current locale. 比较S1和S2是否相同,不区别大小写 if SameText('ABC'.'abc') THEN Edit3.Text:='YES'; //此列将返回True,Edit3将显示YES

您可能感兴趣的文章:
关于微软的.NET Framework是一个半成品的言论!
转:学不会的JAVA,消不了的忧愁!(1)
如何在C#中加载自己编写的动态链接库(DLL)
关于C#下写的Web Service 服务在Delphi下调用时的问题
Python的内建比较函数cmp比较原理剖析
php字符串比较函数实例
如何实现VB和VC的联合调试
php比较几个数的大小
PHP array_udiff_assoc() 函数
php 时间计算问题学习总结

关键词: 其他web相关  delphi  函数  文本比较   
[关闭]