필터 지우기
필터 지우기

How to use the drop down value in if clause ?

조회 수: 2 (최근 30일)
farzad
farzad 2020년 3월 21일
댓글: farzad 2020년 3월 22일
Hi All
I have a drop down component in my app using app designer, which their values are numbers like 1 , 2 ,3,4
then I need to use this vlaue in the push Button code.
So I wrote in the dropdown section :
dtype = app.Drtype.Value;
and I made this value public property but I don't know what I should assign for its default value
and in the pushbutton code :
if app.dtype== 1
But doing so , nothing happens, I also tried '1' and str(1) , but seems not to be working
  댓글 수: 1
farzad
farzad 2020년 3월 22일
I am not sure if I am missing a correct naming or it's a missing parameter

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

답변 (0개)

카테고리

Help CenterFile 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!

Translated by