Using %COMPILEFILE Correctly

Everything else that doesn't fall into one of the other PB categories.
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Using %COMPILEFILE Correctly

Post 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
~I see one problem with your reasoning: the fact is thats not a chicken~
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post 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".
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

Thanks Trond, I hadn't set the before 'compile and run' parameter. You're a lengend mate!
~I see one problem with your reasoning: the fact is thats not a chicken~
Post Reply