Hello,
I am trying to create like a message box into app designer using the Text Area component. For example if the user enter the Name and LastName it displays 'Name and LastName Entered successfully'. Else the Text Area displays 'Information Not Provided'. So now when the user selects Gender from drop down box it should displays 'Gender as Male selected'. Text is displayed into the Text Area when a Button is clicked. The button has a functionality to check whether the textField is empty or not empty. And to check whether the textField is empty its done with a help of function checkNames(app). To check the selected Gender from the dropDown Menu I am using a Switch case and the switch case is evaluated using the function checkGender(app). Is there a way so that i dont have to define .Value{1}, .Value{2} .... Thank You
Code
methods (Access = private)
if ~(isempty(app.EditField_Name.Value) || isempty(app.EditField_LastName.Value))
app.MessageBoxTextArea.Value{1} = 'Name and LastName Entered successfully';
app.MessageBoxTextArea.Value{1} = 'Information Not Provided';
function checkGender(app)
switch app.DropDown_Gender.Value
app.MessageBoxTextArea.Value{2} = 'Gender as Male Selected';
app.MessageBoxTextArea.Value{2} = 'Gender as Female Selected';
app.MessageBoxTextArea.Value{2} = 'Gender as Others Selected';
methods (Access = private)
function ButtonPushed(app, event)