Previous Value of Numeric Edit Field
Show older comments
Hi all,
Is there a quick way to reference the previous value of an App Deigner numeric edit field? This is in order to reset the value after an error dialog has been shown. Something like
app.NumericEditField.Value = app.NumericEditField.PreviousValue
would be ideal.
Many thanks.
Accepted Answer
More Answers (1)
Ajay Kumar
on 16 Feb 2020
Try to save the Previous value in a temporary variable. For eg:
temp = app.NumericEditField.Value;
if error
app.NumericEditField.Value = temp;
else
app.NumericEditField.Value = newvalue;
end
Categories
Find more on Startup and Shutdown 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!