Filter löschen
Filter löschen

Saving texts read from edit box in GUI

7 Ansichten (letzte 30 Tage)
Salad Box
Salad Box am 20 Mai 2019
Kommentiert: Geoff Hayes am 21 Mai 2019
Hi,
I have a edit box in GUI design. This edit box is specifically for puting texts/strings in rather than numbers.
So I used code below to extract strings from the edit box.
data_string = get(handles.edit1, 'string');
There will be a lot of people using this GUI. Each of them will leave their own texts in this edit box. How do I wrap up the texts I got from different people so that each row would represent the texts one person put in?
Untitled.png
I originally thought about using 'cell'. I'm not sure whether there is any better ideas than 'cell'.
Please advise.
Many thanks!
  1 Kommentar
Geoff Hayes
Geoff Hayes am 21 Mai 2019
How do you know when a different person uses this GUI and that you should save the input text to a new element in a cell array? Could a user who has already updated the array be allowed to replace their previous element? Please also describe what this text represents.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Characters and Strings finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by