Effacer les filtres
Effacer les filtres

Keep old data in uitable

2 vues (au cours des 30 derniers jours)
Smiljan
Smiljan le 4 Juil 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.

Réponses (1)

Walter Roberson
Walter Roberson le 4 Juil 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 commentaires
Smiljan
Smiljan le 4 Juil 2012
Modifié(e) : Smiljan le 4 Juil 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 le 5 Juil 2012
Modifié(e) : Smiljan le 5 Juil 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...

Connectez-vous pour commenter.

Catégories

En savoir plus sur Biological and Health Sciences dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by