This code enables and/or disables functions during design andtesting. The code can remain during initial deployment withoutaffecting the end user. Make sure the path string being searchedis part of your project path and is not in your final application’sdirectory:
If InStr(App.Path, "VB") Then ' Set Test Locations ' Modify Settings without changing ' ini or registry settings ' Defeat security ' Set optionsEnd If'A simple variant of this technique isIf InStr(App.Path, "VB") Then Stop
You can insert this during debugging, but if you forget, it won’tcause users problems.