Move data from one table to another, appdesigner

조회 수: 4 (최근 30일)
FERNANDO CALVO RODRIGUEZ
FERNANDO CALVO RODRIGUEZ 2022년 12월 12일
댓글: FERNANDO CALVO RODRIGUEZ 2022년 12월 13일
Hi!
I have a question about how to move data from one table to another in appdesigner by selecting a checboc (true or false) in the last column of each row. What i want to achieve is that if i check a box, that row will be moved to the other table.
Does anyone know how to program it?
Thanks!

채택된 답변

Nikhil
Nikhil 2022년 12월 13일
Hi Fernando,
In the app designer, select your checkbox under app.UIFigure and go to Callbacks Tab. Here you have an option of adding a callback when the checkbox's value is changed. Add something like this to your callback function.
function CheckBoxValueChanged(app, event)
value = app.CheckBox.Value;
switch value
case 1
% add your functionality here
end
end
Hope this helps
  댓글 수: 1
FERNANDO CALVO RODRIGUEZ
FERNANDO CALVO RODRIGUEZ 2022년 12월 13일
Al final lo hice de otra forma que resulta igual, pero así me parece más interesante!
Muchas gracias por la ayuda.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Downloads에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by