is there a way to make it to where if a checkbox is checked then that corresponding word will show up in the text area?
Show older comments
i am using app designer and i am trying to get it to where if a check box is checked then it will display the name in the text area. this below is what in have for when a button is pushed fpmc fpcoy and fprg are set as words in the properties. and i want it to show up if the box for those is checked shown in the picture
and i want it to display like this
Flatpack mc
Flatpack Coy
Flatpack Rg
not Flatpack mc Flatpack Coy Flatpack Rg
i can get it to work but only for the Rg one
thank you
function DoneButton_4Pushed(app, event)
po=num2cell(app.PoEditField.Value);
fp1=app.FlatpackMcCheckBox.Value;
fp2=app.FlatpackCoyCheckBox.Value;
fp3=app.FlatpackRGCheckBox.Value;
if fp1==1
fpp=[app.fpmc];
else
fpp=0; % want to leave it blank;
end
if fp2==1
fpp=[app.fpcoy];
else
fpp=0;
end
if fp3==1
fpp=[app.fprg];
else
fpp=0;
end
app.PoTextArea.Value=[string(po)];
app.ProductTextArea.Value=[string(fpp)];
Accepted Answer
More Answers (0)
Categories
Find more on Data Import and Export in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!