Thnak you @Geoff Hayes for the detailed reply. It worked for me ! I have a follow up question for the same topic. Now I want to diaplay "Name Tom and Last Name Jerry Entered Successfully". How can I append/ merge it into the same function. For example Intially I used app.MessageBoxTextArea.Value{1} = ('Name ',app.EditField_Name.Value, 'and LastName', app.EditField_LastName.Value, 'Entered successfully');
Because calling
addMessageToMessageBox(app,'Name',app.EditField_Name.Value);
Will not work and throw an error to many input arguments.
How can I modify the function addMessageToMessageBox(app, msg) to accept this? or is there another way to do this? Thank you again