Unable to change label text via code
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Basem Nabil
il 8 Mag 2019
Commentato: Walter Roberson
il 9 Mag 2019
Hello,
I have created several labels using app designer but whenever I try to change a label text within a callback of a button it gives me an error for the equal sign '='
app.label9.Text = 'Incorrect values';
7 Commenti
Walter Roberson
il 9 Mag 2019
I believe that can happen if you have set text that is wider than the width the control has been set to.
Risposta accettata
Adam Danz
il 8 Mag 2019
Modificato: Adam Danz
il 8 Mag 2019
(Continuing from comments under question)
That's not matlab syntax. Looks like cpp. If you have this opened in your matlab editor, it should be lighting up like Rudolph with red underlines.
Correct way:
if condition
% code
else
%code
end
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!