I have multiple VB6 .frm
files. See example below. I want to strip away the functions and subs from the code and leave only the form design.
What I need t
You just need 2 rules:
1) If line starts with 'Attribute' then don't delete. 2) If line starts with 'Attribute' set a flag to start deleting all subsequent lines.
Rule #1 will prevent you from deleting subsequent Attribute lines, and there should be nothing you want to keep after the first Attribute you encounter unless it's an Attribute.