[討論] 如何找到checkbox的value

作者: gdpeter1118 (阿呆)   2014-05-05 23:24:37
小弟利用gui介面按button的function 創了一個checkbox,
但是我要按另一個按鈕的時候,他卻一直說找不到這個function.....
想請問該怎麼辦?
function pushbutton1_Callback(hObject, eventdata, handles)
handles.check=uicontrol('Style','checkbox','Position',[30 50 80
20],'String','15611541');
function pushbutton4_Callback(hObject, eventdata, handles)
h = get(handles.check,'String');
set(handles.text1,'String',h);
ERROR Reference to non-existent field 'check'.
最後目標是做動態的checkbox 數量和位置原本都好了,卻發現無法呼叫,因此想
請教各位大大。 Q_Q

Links booklink

Contact Us: admin [ a t ] ucptt.com