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.
Switch between file.pbi and file.pb?
Re: Switch between file.pbi and file.pb?
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.
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.
DE AA EB
Re: Switch between file.pbi and file.pb?
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".The problem is jumping back and forth and feeding the name of your files.
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 nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: Switch between file.pbi and file.pb?
If the filename is the same, just switch between extension .pb and .pbi:skywalk wrote:The problem is jumping back and forth and feeding the name of your files.
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
Re: Switch between file.pbi and file.pb?
Thanks Danilo, that works fine.
skywalk, that post is from 2011 i guess it has stopped?
davido, i knew that thanks anyways.
skywalk, that post is from 2011 i guess it has stopped?
davido, i knew that thanks anyways.