Get listbox into textbox
이전 댓글 표시
Hi, I want to get values from listbox to insert textbox by adding sentence.:
I have cities in listbox(milano, atina, istanbul, amsterdam)
When I choose amsterdam, sholud be shown in the textbox "Selected city is Amsterdam"
Next I choose milano, sholud be shown in the textbox "Selected cities is Amsterdam, Milano"
Next I choose istanbul, sholud be shown in the textbox "Selected cities is Amsterdam, Milano, İstanbul"
I try but I only know "string" and "value" command so I can't solve how to add directly string text and adding to each other. thanks for interest.
city=get(handles.listbox1,'string');
set(handles.edit1,'string',city);
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!