首页 > 其他 > 详细

TEdit的 Clear 和 赋值 ''

时间:2015-06-27 17:57:52      阅读:190      评论:0      收藏:0      [点我收藏+]
function TControl.GetText: TCaption;
var
  Len: Integer;
begin
  Len := GetTextLen;
  SetString(Result, PChar(nil), Len);
  if Len <> 0 then GetTextBuf(Pointer(Result), Len + 1);
end;

procedure TControl.SetText(const Value: TCaption);
begin
  if GetText <> Value then SetTextBuf(PChar(Value));
end;

 

procedure TCustomEdit.Clear;
begin
  SetWindowText(Handle, ‘‘);
end;

 

TEdit的 Clear 和 赋值 ''

原文:http://www.cnblogs.com/CodeGear/p/4604232.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!