app designer does not get the value from edit field in panel

7 Ansichten (letzte 30 Tage)
farzad
farzad am 4 Sep. 2020
Beantwortet: Mario Malic am 4 Sep. 2020
Hi All
I have an edit field that is inside a panel. It seems that when I call the value with app.variable , it can not be read. How to fix? am I using the wrong method ?
% Value changed function: ColumnEditField
function ColumnEditFieldValueChanged(app, event)
app.col = app.ColumnEditField.Value;
end
  3 Kommentare
farzad
farzad am 4 Sep. 2020
It says it doesn't know the variable.
Xavier
Xavier am 4 Sep. 2020
Have you verified that the edit field is still named "ColumnEditField"? You can check by using the Component Browser pane in the design view
Alternatively have you created the 'col' property within the app?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Mario Malic
Mario Malic am 4 Sep. 2020
It's correct what you've written and what Xavier suggested. You need to create a property col.
If col is a number, use col = [];
If col is a char, use col = '';

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by