Keep old data in uitable

2 次查看(过去 30 天)
Smiljan
Smiljan 2012-7-4
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.

回答(1 个)

Walter Roberson
Walter Roberson 2012-7-4
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 个评论
Smiljan
Smiljan 2012-7-4
编辑:Smiljan 2012-7-4
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 2012-7-5
编辑:Smiljan 2012-7-5
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...

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Biological and Health Sciences 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by