FYI - Here is an Intellisense script that I found on fox.wikis.com that will harvest out the Local vars used in your code, and pop the Local declaration code for them right into the code window at the cursor.
Also, it is smart enough to only add a new Local declaration for vars that haven't already been declared as Local. So, you can run it any time (mutiple times), and it "plays nice" with the Locals that are already declared, and will only add the ones that are not yet declared.
http://fox.wikis.com/wc.dll?Wiki~IntelliSenseCustomScripts~VFP#Contents_2NI0MIR8WType “Locals” (then press space) and get:
LOCAL loMaterialItemController AS Object, lcParentAlias AS String, loNewPO AS Object
Or type “Locals6” (as in VFP version 6) (then press space) and get:
LOCAL loMaterialItemController, lcParentAlias, loNewPO