필터 지우기
필터 지우기

Saving texts read from edit box in GUI

조회 수: 7 (최근 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 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