TEdit的 Clear 和 赋值 ''
2015-06-27 16:31
357 查看
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;
相关文章推荐
- 输出VC的反汇编代码到文件
- RUBY-超大数字操作
- CVPR 2015 papers
- Android APK 签名比对详解
- RUBY-类、对象练习
- RUBY-hash操作
- POI 设置单元格背景色,背景色编码与实际颜色对照表
- FindBoost 查找Boost的inlude目录和库
- memCache for java 网页缓存
- 一起talk GCC吧(第五回:GCC优化)
- 如何在当前目录下快速打开cmd
- 深入探究JVM(2) - 探秘Metaspace
- 算法分析与设计矩阵连乘问题
- RUBY-数组操作
- 欢迎使用CSDN-markdown编辑器
- 从 c# 到java
- 微信开放平台和公众平台的区别
- NoSQL系列:选择合适的数据库
- crypto++ 中DES AES RC5 RC6 TEA XTEA XXTEA加密算法性能比较
- cocos2d-x Lua引擎安装步骤