PB_TOOL_Executable questions

Found an issue in the documentation ? Please report it here !

Moderator: Documentation Editors

User avatar
kenmo
Addict
Addict
Posts: 1967
Joined: Tue Dec 23, 2003 3:54 am

PB_TOOL_Executable questions

Post by kenmo »

In the "Using External Tools" documentation, the list of environment variables says:
PB_TOOL_Executable - same as the %COMPILEFILE token for the command-line
First, it seems strange that the "Executable" variable is the same as the "COMPILEFILE" token... shouldn't it be the same as the "EXECUTABLE" token?

Second, when I test "PB_TOOL_Executable" it doesn't seem to return the same thing as "%COMPILEFILE" or "%EXECUTABLE", but something else!

Test with this small tool code:

Code: Select all

; Build this tool, trigger it "Before Compile/Run", pass %COMPILEFILE and %EXECUTABLE arguments
; Then try running this program from the IDE and see what it outputs

If (ProgramParameter(0))
  Output.s = "%COMPILEFILE = " + ProgramParameter(0)
  Output + #LF$ + "%EXECUTABLE = " + ProgramParameter(1)
  Output + #LF$ + "PB_TOOL_CompileFile = " + GetEnvironmentVariable("PB_TOOL_CompileFile") ; does not exist
  Output + #LF$ + "PB_TOOL_Executable = " + GetEnvironmentVariable("PB_TOOL_Executable")
  MessageRequester("", Output)
EndIf