教程集 www.jiaochengji.com
教程集 >  脚本编程  >  Delphi  >  正文 delphi 文本比较函数AnsiStartsText和SameText的用法

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

发布时间:2011-10-12   编辑:jiaochengji.com
教程集为您提供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

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

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