例子是这样的.
procedure updatecaption;
begin
showmessage(form1.labelededit1.text);
end;
labelededit1明明有输入数据的,但在updatecaption里面访问的时候,值为 ''.
procedure updatecaption;
begin
showmessage(form1.labelededit1.text);
end;
labelededit1明明有输入数据的,但在updatecaption里面访问的时候,值为 ''.
解决方案 »
- 真的不懂delphi阿..
- 关于Delphi发邮件问题 SSL加密问题
- 请DELPHI高手帮忙,本人很着急。谢谢!
- 一个简单的多线程同步问题
- [Fatal Error] Required package 'dclOfficeXP' not found
- 如何在delphi中修改DBE中的DataBase Name??
- 送分 --> http://www.xlkjsoft.com/winofficer.zip [软件交流,有源码,请各位多多指教!]
- 请问有没有与PING效果类似的方法或控件?
- ********质疑一下BDE?????******
- 关于dbgrid与table绑定问题。
- 求TMS控件包的使用
- 请问如何将OLEVariant类型转为自定义类型
我在excute的时候调用的
synchronize(updatecaption);
to bee2518:
没有设置为空
很奇怪,我在那个 Labelededit1控件同一个Tform(form1)里面的button_click事件里面不小心这样调用
showmessage(form1.labelededit1.text) ->显示空
但showmessage(labelededit1.text) ->可以得到正确的结果.