You are here: start » ppl » statements » command

COMMAND ViaCmdLst, CommandLine

COMMAND ViaCmdLst, CommandLine

Process a command as if it were typed on the prompt.
ViaCmdLst: A boolean value indcating whether or not to try to find the command in CMD.LST. If TRUE and the command is not in CMD.LST, it will try the standard commands automatically, failing if the command does not exist.
CommandLine: A string value with the command and parameters to execute. (like “R A Y O S”)
NOTES!!! Not all portions of PCBoard are re-entrant. For example, you should not try to have two message editor processes active at the same time (in other words, you shouldn't launch the message editor from within a MNU and then launch a PPE from a shifted function key that tries to enter another message). So you'll need to be carefull about nested COMMAND (or equivalent) calls. But sequential processing should not be a problem at all.
If it is determined at some point in the future that allowing this flexibility causes more problems than it solves, the COMMAND statement will be scaled back to ensure that attempts are not made to re-enter code. So use it well and wisely!

ppl/statements/command.txt · Last modified: 2019/04/16 14:00
CC Attribution 4.0 International Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution 4.0 International