The returned errorlevel from wtreqinfo after displaying a prompt box is not of much interest, the information required is the text that was entered by the user. You should always supply the name of a program or script file to be run with the user's entry on its command line as part of the prompt box switch; if you do not, wtreqinfo does not stop to allow text entry and the errorlevel is undefined.
If a module name is supplied, wtreqinfo does not carry out any checks to make sure it exists before attempting to run it, and if it does not exist, the returned errorlevel is equal to the length of the text string entered by the user, up to 255, or 256 if ENTER were pressed without typing any text.
If the supplied module exists and is successfully executed, the returned errorlevel is undefined.
Page url: http://wtcmanual.wintextware.com/index.html?wtri_text_prompt_return_values.htm