Saving texts read from edit box in GUI

4 ビュー (過去 30 日間)
Salad Box
Salad Box 2019 年 5 月 20 日
コメント済み: Geoff Hayes 2019 年 5 月 21 日
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 Center および File ExchangeCharacters and Strings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by