Clear Filters
Clear Filters

Keep old data in uitable

2 views (last 30 days)
Smiljan
Smiljan on 4 Jul 2012
Hello,
I would like to know how i can keep data in the UItable?
I have 2 GUIs. In the Sub GUI i type in variables and save them in one matrix. The uitable in the Main GUI gets the matrix. When i close the sub GUI and want to open it again because i want to add a new row of variables, the old data in the Main GUI uitable is gone.

Answers (1)

Walter Roberson
Walter Roberson on 4 Jul 2012
No, when you destroy the uitable by closing the sub GUI, it loses its existence and there is nothing there anymore to remember the contents it had.
Consider the possibility of setting the Visible property of the sub-GUI off instead of closing the sub-GUI.
  3 Comments
Smiljan
Smiljan on 4 Jul 2012
Edited: Smiljan on 4 Jul 2012
I also red your message again. THe uitable is in the Main GUI. It gets populated when entering data in the SUB GUI and pushing the ok button in the SUB. So the uitable is open and active all the time..
Smiljan
Smiljan on 5 Jul 2012
Edited: Smiljan on 5 Jul 2012
Sorry for bothering again.
I turned the visbility off by pushing another button on my sub gui. so when i turn the visibilty on again by pushing the button on my main gui, the old data in the sub ist still there. but when i continue typing in variables , the uitable in the main keeps on overwritting the old data. how is this possible?? maybe because the sub gui still closes even if its only invsible...

Sign in to comment.

Categories

Find more on Biological and Health Sciences in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!