SuperTrimCode - VB6 Code Cleaner for Special Processing
Title: SuperTrimCode - VB6 Code Cleaner for Special Processing
Description:
Specialized function to clean and normalize VB6 code by removing redundant colons,
extra spaces, and formatting artifacts. Particularly useful when preparing code
for conversion to single-instruction-per-line format or other automated processing.
IMPORTANT:
This function assumes the code has been saved from the VB6 IDE, which automatically normalizes keywords to their standard case format
(e.g., 'then' becomes 'Then', 'elseif' becomes 'ElseIf'), adjusts spacing, and corrects formatting.
If working with code edited outside VB6, first open and save it in the VB6 IDE before using this function.
Use cases:
- Preparing code for line-by-line analysis
- Cleaning code before conversion to single-line format
- Normalizing code formatting from multiple sources
- Removing redundant statement separators
What it does:
- Removes unnecessary colons after keywords (Then:, Else:, etc.)
- Ensures proper spacing after colons used as statement separators
- Preserves string literals intact
- Handles comments correctly
Requirements:
- VB6 IDE-formatted code (the code must compile and run in VB6)
- Code should be saved from VB6 to ensure proper normalization
Note:
This is a specialized tool for specific code processing needs,
not a general-purpose string trimmer.
Last edited by James Reynolds; Sep 26th, 2025 at 06:29 PM.