devxlogo

September 7, 2016

Runtime Mode

If you ever need to know whether your code running inside the IDE or is compiled, drop these two functions in a module and use the first one to figure it out: Public Function RunTimeMode() As Boolean Dim bool As Boolean     Debug.Assert SetToTrue(bool)     RunTimeMode = Not bool End Function Private Function SetToTrue(ByRef bool As Boolean) As Boolean     bool = True     SetToTrue = True End Function

Ending the War of the Shells

Shells are the interactive programs that run in text terminals and let you execute commands and run external programs. But, shells can be used non-interactively and you can write scripts