Hello –
This could be really trivial but I don't seem to figure it out what went wrong. I have a GUI that user browse to a directory, then I have an edit text box performs some regexp operation of the directory name and give an output in the text box – which the users can leave it as if if they're happy with the choice or do any modification. The problem I'm having is that if they user leaves the text as is, I can retrieve the text from handles.edit.String (or get(handles.edit,'String'). If text box gets modified, the UIcontrol structer disappears, and the input text is store as handles.edit.
Is there a way to keep the structure of the variable the same so I don't have to do any precheck on handles.edit? What could I may have done incorrectly? I'm using R2015a.
Thank you for any suggestion! Pearl
Best Answer