MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   请问如何获得edit text中显示的数据 (https://www.labfans.com/bbs/showthread.php?t=5346)

bigorangefdc 2008-11-16 00:51

请问如何获得edit text中显示的数据
 
请问如何获得edit text中显示的数据 (不论数据什么来源)
我用代码为
h=findobj('tag','edit1');
m=get(h,'edit1')
报错为
There is no 'edit1' property in the 'uicontrol' class.
Error in ==> ex1>edit1_Callback at 361
m=get(h,'edit1')


请大家指点!

未注册 2008-11-16 15:49

回复: 请问如何获得edit text中显示的数据
 
这条命令:m=get(h,'edit1')是做什么用的,若是想得到edit1的输入,可以这样
m=get(h,'string');
我认为你最好是先搜索本版面,然后再提问。

xiezhh 2008-11-16 15:52

回复: 请问如何获得edit text中显示的数据
 
这条命令:m=get(h,'edit1')是做什么用的,若是为了得到edit1的输入,可以这样:
m=get(h,'string');
我建议你还是先搜索本版面再提问题。


所有时间均为北京时间。现在的时间是 03:06

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.