Page 1 of 1

Using %COMPILEFILE Correctly

Posted: Mon Oct 30, 2006 9:29 pm
by Killswitch
I've been looking into builing a tool for PB, and I need to use the %COMPILEFILE argument, but I'm having a bit of trouble. I'm probally doing this completely wrong, but when I try and recover the actuall argument with my tool (after setting it up with the IDE), like so:

Code: Select all

  Param.s=ProgramParameter()
  While Param
    Output.s+Param
    Param.s=ProgramParameter()
  Wend
  MessageRequester("",Output)
It returns nothing. What's the proper way to do this?

Thanks,

Killswitch

Posted: Mon Oct 30, 2006 9:48 pm
by Trond
First of all, be sure to enclose the parameter in quotes: "%COMPILEFILE".

Then, remember that %COMPILEFILE will be filled in when the tool is called before "compile and run".

Posted: Mon Oct 30, 2006 10:17 pm
by Killswitch
Thanks Trond, I hadn't set the before 'compile and run' parameter. You're a lengend mate!