Page 1 of 1

prompt with a numeric message identifier

Posted: November 6th, 2020, 6:14 am
by AriSilva
The help says that the prompt accepts a message, but it cannot be from the message file.
That is,
prompt(500, password);
where
Message file
500 Type your password
It issues a compiler error message

Re: prompt with a numeric message identifier

Posted: November 9th, 2020, 7:59 am
by Gregory Martin
The helps say "showing the string expression message." Except for the errmsg/maketext/... group of functions, which can take a string or a number, all other CSPro functions require strings. The shortest workaround for that is the tr function:
prompt(tr(500), password);