reading edit boxes without callback
Afficher commentaires plus anciens
Everybody hello, my question about to read edit boxes(~10) without call backs, because of the number of edit boxes and also the default values are difficult to enter every time when I run the GUI, default values are already exist in the editboxes so when user wants to change any, with callback function I can read the values but now I want to store all data without any callback of edit box but just callback function of pushbutton. because on that case when the subfunctıon of pushbotton is called as the variables in the handle has not beed defined yet I can't store the data what is the best way to get all those data from written editboxes without calling exucitıon of the subfunction blongs to edit boxes. thanks ın advance
Réponse acceptée
Plus de réponses (1)
Azzi Abdelmalek
le 30 Août 2013
data{1}=get(handles.editbox1,'string');
data{2}=get(handles.editbox2,'string');
data{3}=get(handles.editbox3,'string');
What is the problem with that?
1 commentaire
Metin
le 30 Août 2013
Catégories
En savoir plus sur Interactive Control and Callbacks dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!