Saving texts read from edit box in GUI

2 次查看(过去 30 天)
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 个评论
Geoff Hayes
Geoff Hayes 2019-5-21
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.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by