Page 1 of 1
Switch between file.pbi and file.pb?
Posted: Sun Jul 28, 2013 4:15 pm
by Justin
I'm looking for a way to quickly switch from a file and its include or viceversa, can an external tool do it?
I don't see any option to select a file for an external tool.
Re: Switch between file.pbi and file.pb?
Posted: Sun Jul 28, 2013 4:31 pm
by davido
Hi Justin,
If you just double-click on the Keyword Include then the file will be loaded into the IDE.
I am sure that this is not exactly what you want, but I hope it might help.
Re: Switch between file.pbi and file.pb?
Posted: Sun Jul 28, 2013 4:46 pm
by skywalk
Not until this is released...
A workaround freak mentioned is to make a Tool that opens your file provided you check "Run only one instance of the IDE".
Code: Select all
exe$ = GetEnvironmentVariable("PB_TOOL_IDE")
RunProgram(exe$, "c:\myproject\myinclude.pbi /L 1", "c:\myproject")
The problem is jumping back and forth and feeding the name of your files.
Re: Switch between file.pbi and file.pb?
Posted: Sun Jul 28, 2013 5:20 pm
by Danilo
skywalk wrote:The problem is jumping back and forth and feeding the name of your files.
If the filename is the same, just switch between extension .pb and .pbi:
Code: Select all
IDE.s = GetEnvironmentVariable("PB_TOOL_IDE")
FILE.s = ProgramParameter(0)
If FILE And IDE
If LCase(GetExtensionPart(FILE)) = "pbi"
FILE = Left(FILE, Len(FILE)-1)
ElseIf LCase(GetExtensionPart(FILE)) = "pb"
FILE + "i"
EndIf
;MessageRequester("INFO",FILE)
If FileSize(FILE) >= 0
RunProgram(IDE, #DQUOTE$+FILE+#DQUOTE$, #DQUOTE$+GetPathPart(FILE)+#DQUOTE$)
EndIf
EndIf
Requires argument "%FILE" (with double quotes) in the tool settings.
Re: Switch between file.pbi and file.pb?
Posted: Sun Jul 28, 2013 6:10 pm
by Justin
Thanks Danilo, that works fine.
skywalk, that post is from 2011 i guess it has stopped?
davido, i knew that thanks anyways.