高难问题:用if语句判断edit的内容为空的语句怎么写?(100分)

X

xukai

Unregistered / Unconfirmed
GUEST, unregistred user!
送分啊?
if Trim(Edit1.Text)='' then
 
if Trim(Edit1.Text)='' then
....
 
if Edti1.Text='' then
...
 
送分??
if Edti1.Text='' then
...
 
有没有搞错?是不是你分太多了?
if trim(edit1.text)='' then
这句可以把首尾的空格删除,如果不需要删除空格就用另外一个回答
 
if length(Edit1.text)=0 then
 
有没有搞错?是不是你分太多了?
if trim(edit1.text)='' then
 
以上都是可以的
老兄,我猜你的本意不是这个吧?
 
以上都是可以的
快点结束吧
 
if length(edit1.text)=0;
送分需要理由吗?不需要吗?需要吗?不需要吗?
反正我不会客气的。但我还是要说:晒晒泥!
 
一百分啊,你们就给你种答案,我来个通用的
if Trim(TEdit(sender).Text)='' then
....
 
这里有分捡吗??
如果有空格也不算空的话 if Edit1.Text='' then
..
如果空格也算空的话 if Trim(Edit1.Text)='' then
 
if edit1.Text ='' then
showmessage('It is Nil');
呵呵,我可以拿分吗?
 
if Trim(TEdit(sender).Text)='' then
....
 
if Trim(Edit1.Text)='' then
....
 
if length(trim(edit1.text))=0 then
....
 
if Trim(Edit1.Text)='' then
showmessage('这里有分捡呀');
 

Similar threads

S
回复
0
查看
962
SUNSTONE的Delphi笔记
S
S
回复
0
查看
784
SUNSTONE的Delphi笔记
S
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
1K
SUNSTONE的Delphi笔记
S
顶部