MESSAGE_INPUT$()

MESSAGE_INPUT$(T1,T2,T3)

DISPLAYS A WINDOW WITH CAPTION T1, AN ALPHA WITH CAPTION T2, AN EDIT DISPLAYING T3 AND TWO BUTTONS

  • Type: Function
  • Parameters: 3
  • Group: Messages

ACTION

The function displays a window with the caption T1, an ALPHA with the caption T2, an EDIT displaying the text T3 and two buttons "OK" and "CANCEL".

The program is frozen and resumes when user closes The window.

The function returns:

- T3 when the user closes the window by clicking on the button "CANCEL" or on the closing icon (red cross).

- the text of EDIT when the user closes the window by clicking on the button OK.

SYNTAX: Result$=MESSAGE_INPUT$(T1,T2,T3)

  • T1 = text (string) to be displayed as caption of the message window.
  • T2 = text (string) to be displayed as caption of the ALPHA.
  • T3 = text (string) to be displayed as text of the EDIT.
  • Result$ is a string.

USE

  • The function MESSAGE_INPUT$() is used to treat a text entered by the user.

ERROR

  • If the text T1 or T2 or T3 is not a correct string expression.

EXAMPLE

rem wait for the user input and print the result

print message_input$("Data to be entered", "Give your age" , "20")

SEE ALSO

MESSAGE

MESSAGE_CONFIRMATION_OK()

MESSAGE_CONFIRMATION_YES_NO()

MESSAGE_ERROR_OK()

MESSAGE_ERROR_YES_NO()

MESSAGE_INFORMATION_OK()

MESSAGE_INFORMATION_YES_NO()

MESSAGE_INPUT()

MESSAGE_TEXT$

MESSAGE_WARNING_OK()

MESSAGE_WARNING_YES_NO()