confuse with the 'String' and 'Value' when I use the GUIDE to app designer migration tool

조회 수: 34 (최근 30일)
I change the fig code to the app designer code by using the GUIDE to app designer migration tool,and I need correct the code.But there is some code confused me :
set(app.orderN_tag,'String',num2str(app.orderN));
I change the code to
app.orderN_tag.Value=num2str(app.orderN);
but there is another code
set(app.orderN_tag,'Value', orderN);
what should I change the code to fit the app designer ?

채택된 답변

TAB
TAB 2018년 5월 24일
String is the visiable name/lable of the control.
For example Button lable , Checkbox name lable etc.
Value is the numeric value of control based on its status.
For example if a Checkbox is selected is value 1, If Checkbox is not selected its value is 0.
See Type of Control > Value section at UIControl Properties
  댓글 수: 1
Rik
Rik 2018년 5월 24일
In addition to this: you can change the value that a checkbox returns if it is checked by changing the Max property.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Update figure-Based Apps에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by