Keep old data in uitable

1 visualizzazione (ultimi 30 giorni)
Smiljan
Smiljan il 4 Lug 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.

Risposte (1)

Walter Roberson
Walter Roberson il 4 Lug 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 Commenti
Smiljan
Smiljan il 4 Lug 2012
Modificato: Smiljan il 4 Lug 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 il 5 Lug 2012
Modificato: Smiljan il 5 Lug 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...

Accedi per commentare.

Categorie

Scopri di più su Financial Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by