Change a "name" (variable name, property name, etc.) throughout the code (uses RegEx to change only "whole words").ģ3. Obfuscate (or unobfuscate) source code by switching control names.ģ2. Display list of modifications made to XML code by CodeHelper.ģ1. Add appropriate counter variable to "Next" line (e.g., "Next" becomes "Next LineNumber").ģ0. Send to printer any list, source code, or XML file on the screen (see 24, 25, and 26).Ģ8. Save to disk (modified) XML file displayed on the screen (will run as a regular program).Ģ7. Save to disk extracted ur edited source code displayed on the screen.Ģ6. Save to disk any of several lists (Constants, Controls, Line Labels, Menu Items, Methods, Modules, Passed Parameters, Properties),Ģ5. Restore indentation of source code to normsdal (see 17 above).Ģ4. Remove highlighting from entire Project, setting the cursor at the top of each MethodĢ3. Remove procedure headers or footers (see 4 and 5 above).Ģ2. Remove all blank lines from source code.Ģ1. Remove all automatic "Else", "End If", or "Next" comments (see 1, 2, and 3 above).Ģ0. Remove "//", " ' ", or "REM " symbols from source code.ġ9. Increase indentation of source code beyond the normal indentation (sometimes makes source code more readable).ġ8. Inset a space before and after mathematical operators ( +, -, , /, =, ^, , >=, <= ), before or after parentheses symbols, and/or after commas.ġ7. Edit XML or extracted Source or search for string or whole word in XML or extracted Source.ġ6. Display XML file on screen (including any modifications that have been made to the XML code).ġ5. Display source code on screen for entire project or for a particular procedure.ġ4. Conform keywords to standard REALbasic format regarding case (e.g., "NEXT","next", "NExt" all become "Next").ġ3. Comment out all MsgBox statements (sometimes useful if MsgBox is used only for debugging).ġ2. Comment out all source code with indenting preserved (sometimes useful if a major rewrite of a program is needed).ġ1. Change font throughout to System for font and 0 for font size.ġ0. Check to see whether any Properties in a procedure are defined but never actually used.ĩ. Check to see whether any Variables are DIMensioned but never actually used.Ĩ. Check to see whether any Variables and any Properties have been given the same name.ħ. MsgBox "An error occurred in Window1.EnableMenuItems."Ħ. Add "boilerplate" material to end of procedures. Add "boilerplate" material to beginning of procedures (e.g., header telling name of procedure, purpose, programmer, date, etc.).ĥ. Add automatic comment to End If line.Įxample: Next I // For I = 0 To LastLineNumberĤ. xml format for Projects allows me to do: 1. I found the latter particularly helpful, since by manipulating the contents of the file I was able painlessly to accomplish over a hundred tasks that would otherwise be difficult or impossible to do. With REALbasic, I was able to save a Project in several different formats, including.
0 Comments
Leave a Reply. |