ReturnCode

Prev Next Home Home Table Of Contents Index

ReturnCode : Number

When you use the Execute function, a ReturnCode value is fed into this variable when you return to the menu. The code returned is the same as what the DOS ErrorLevel would be. This will not work if you use the UseCommand On function because COMMAND.COM would have been loaded and the returncode would be lost.

You also have to specify the COM or EXE extension or else MarxMenu will use COMMAND.COM and the return code will be lost.


Example:
Execute 'INMEM.EXE SK' if ReturnCode = 0 then Writeln 'Sidekick not Loaded!'

See Also: ExitCode

Category: Execution

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home