After working with VFP for a few years I have developed some macros that I use all the time in developement. I wanted to start a thread of cool macros that people use that make developement a little easier. So submit yours and maybe we can create a new doc for reference
All of these execute in the command window.
___________________________________________________________
This one will open up an instance of windows explorer in the current default directory
lcdir{SPACEBAR}={SPACEBAR}set('defa')+curdir(){ENTER}
run{SPACEBAR}/n{SPACEBAR}explorer{SPACEBAR}&lcdir{ENTER}
____________________________________________________________
If you use ms word alot here is one that starts word
o{SPACEBAR}={SPACEBAR}createobject('word.application'){ENTER}
o.visible{SPACEBAR}={SPACEBAR}.t.{ENTER}
_____________________________________________________________
Here is one that backs up every file in a project using a prg called zipproj (available in the files section)
do{SPACEBAR}zipproj{SPACEBAR}with{SPACEBAR}'YourProject'{ENTER}
______________________________________________________________
This one starts Ken Levy's super class
DO{SPACEBAR}(home()+'\supercls\SuperCls'){SPACEBAR}WITH{SPACEBAR},,0{ENTER}
_______________________________________________________________
This one starts the filer app
do{SPACEBAR}form{SPACEBAR}(home()+'tools\filer\filer'){ENTER}
Rip Ryness
International Falls, MN