how to keep the strings displayed in the edit box and the selections in the pop-up menu in the GUI1 when you return back from GUI2.

조회 수: 1 (최근 30일)
Hello, I have the following problem: I created two GUI (GUI1 and GUI2). In the first (GUI1) I have two edit text in which I insert numerical values of the two pop-up menus, and a callback function "forward" that brings me to the next GUI (GUI2) that contains two radio buttons, two list-box and two functions callback: a GUI allows you to go to the next (GUI3) the other to return to the previous GUI (GUI1). But when I select the pushbutton 'Back' to return to the gui1, edit the values in the text are not saved as well as the selections made in the pop-up menu. I wanted to know, kindly, how can I see what has been entered in the GUI1 and / or when I get back from the selected GUI2.
Thank you for your cooperation.
  댓글 수: 1
Giuseppe
Giuseppe 2014년 5월 19일
yes I saved the strings in the workspace. How do I set the value stored (for the first time) in the workspace in the function _OpeningFcn? I do not want that when the gui1 is started for the first time creates an error because it does not know the value saved in the workspace. If you start for the first time gui1 creates error?

댓글을 달려면 로그인하십시오.

채택된 답변

Yao Li
Yao Li 2014년 5월 19일
  1. Save the string to workspace or setappdata
  2. You can create a handle in the opening function of GUI1 to dectect whether GUI1 is launched for the first time or not.
  3. If GUI1 is not launched for the 1st time, Set the saved string to the edit text.
  댓글 수: 2
Giuseppe
Giuseppe 2014년 5월 19일
yes I saved the strings in the workspace. How do I set the value stored (for the first time) in the workspace in the function _OpeningFcn? I do not want that when the gui1 is started for the first time creates an error because it does not know the value saved in the workspace. If you start for the first time gui1 creates error?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by