Im wondering how it is possible to have the text of an error or informational message using the 'message' keyword or 'askmess' keyword be controlled by variables and not literal text. We have a need where the contents of the message could change based on location of a file, for instance. Consider the following example of what I would like to be able to do. We would use the message in s_log_text to both display a message on the screen to the user, as well as write the text to a log file.
s_log_text = "File '%%s_filename%%%' saved successfully."
message/info s_log_text
activate "sl_logfile".o_write(s_log_text, s_log_filename)
Right now, if I were to execute this, the message box appears blank. The only way I can seem to get this to work so far is to type out the text literally between double quotes, duplicating what is in s_log_text, with possible inconsistencies. Is it possible to do what I want above?
------------------------------
Tim Colvin
Smyth Retail Systems Inc.
Alliance OH US
------------------------------