社区
语言基础/算法/系统设计
帖子详情
AnsiResemblesText比较字符串的问题
dzogchen
2005-07-06 04:29:21
AnsiResemblesText(123,123123) ,应该是为FLASE呀,怎么会得到TRUE???
我现在要对STR1与STR2做比较,当STR1与STR2一样的时候
CheckBox1.Checked:= AnsiResemblesText(str1,str2);
结果是当
CheckBox1.Checked:= AnsiResemblesText(123,123123);竟然CheckBox1.Checked=true
...全文
51
1
打赏
收藏
AnsiResemblesText比较字符串的问题
AnsiResemblesText(123,123123) ,应该是为FLASE呀,怎么会得到TRUE??? 我现在要对STR1与STR2做比较,当STR1与STR2一样的时候 CheckBox1.Checked:= AnsiResemblesText(str1,str2); 结果是当 CheckBox1.Checked:= AnsiResemblesText(123,123123);竟然CheckBox1.Checked=true
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
dzogchen
2005-07-06
打赏
举报
回复
后来发现只要
sr1=str2判断,就可以了,呵呵。
dephi
字符串
函数大全及实例
首部 function
Ansi
Re
sembles
Text
(const A
Text
, AOther: string): Boolean; $[StrUtils.pas 功能 返回两个
字符串
是否相似 说明
ANSI
(American National Standards Institute)美国国家标准协会;不区分大小写 参考 function StrUtils.SoundexProc; var StrUtils.
Ansi
Re
sembles
Proc 例子 CheckBox1.Checked :=
Ansi
Re
sembles
Text
(Edit1.
Text
, Edit2.
Text
);等等
DELPHI
字符串
函数大全
DELPHI
字符串
函数大全 首部 function
Ansi
Re
sembles
Text
(const A
Text
, AOther: string): Boolean; $[StrUtils.pas 功能 返回两个
字符串
是否相似 说明
ANSI
(American National Standards Institute)美国国家标准协会;不区分大小写 参考 function StrUtils.SoundexProc; var StrUtils.
Ansi
Re
sembles
Proc 例子 CheckBox1.Checked :=
Ansi
Re
sembles
Text
(Edit1.
Text
, Edit2.
Text
);
Delphi6 VCL
字符串
处理函数大全
Google搜索:函数列表 StringOfChar(),ReverseString(),RightStr(),
Ansi
QuotedStr(),MidStr(),DupeString(),
Ansi
Starts
Text
(),
Ansi
StartsStr(),
Ansi
Same
Text
(),
Ansi
SameStr(),
Ansi
Re
sembles
Text
(),
Ansi
ReplaceStr(),
Ansi
Replace
Text
(),()
Ansi
Ends
Text
(),
Ansi
EndsStr(),
Ansi
DequotedStr(),
Ansi
Contains
Text
(),
Ansi
Compare
Text
(),
Ansi
CompareStr(),inttostr(),Booltostr(),TReplaceFlags,OldPattern,mtInformation
Delphi6函数大全
Delphi6函数大全(1) <
> 首部 function
Ansi
Re
sembles
Text
(const A
Text
, AOther: string): Boolean; $[StrUtils.pas 功能 返回两个
字符串
是否相似 说明
ANSI
(American National Standards Institute)美国国家标准协会;不区分大小写 参考 function StrUtils.SoundexProc; var StrUtils.
Ansi
Re
sembles
Proc 例子 CheckBox1.Checked :=
Ansi
Re
sembles
Text
(Edit1.
Text
, Edit2.
Text
); ━━━━━━━━━━━━━━━━━━━━━ 首部 function
Ansi
Contains
Text
(const A
Text
, ASub
Text
: string): Boolean; $[StrUtils.pas 功能 返回
字符串
A
Text
是否包含子串ASub
Text
说明 不区分大小写 参考 function StrUtils.
Ansi
Uppercase; function StrUtils.
Ansi
Pos 例子 CheckBox1.Checked :=
Ansi
Contains
Text
(Edit1.
Text
, Edit2.
Text
); ━━━━━━━━━━━━━━━━━━━━━
delphi6_function(函数大全)
所有的函数都有说明,下面的是例子: 首部 function
Ansi
Re
sembles
Text
(const A
Text
, AOther: string): Boolean; $[StrUtils.pas 功能 返回两个
字符串
是否相似 说明
ANSI
(American National Standards Institute)美国国家标准协会;不区分大小写 参考 function StrUtils.SoundexProc; var StrUtils.
Ansi
Re
sembles
Proc 例子 CheckBox1.Checked :=
Ansi
Re
sembles
Text
(Edit1.
Text
, Edit2.
Text
);
语言基础/算法/系统设计
16,748
社区成员
33,247
社区内容
发帖
与我相关
我的任务
语言基础/算法/系统设计
Delphi 语言基础/算法/系统设计
复制链接
扫一扫
分享
社区描述
Delphi 语言基础/算法/系统设计
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章