Skip to content

Commit

Permalink
Convert Sanitize module to class
Browse files Browse the repository at this point in the history
In some cases sanitizing a source file actually creates two distinct outputs. A layout file and a code file. Rather than making the sanitize function more complicated with byref outputs and non-obvious side effects, I am taking the approach of a more explicit object-oriented route where the code is easier to understand and maintain. (And also allows for future enhancements such as SQL extraction for query definition files.)
  • Loading branch information
joyfullservice committed Oct 25, 2023
1 parent 1ca6886 commit 8e70ad2
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
Attribute VB_Name = "modSanitize"
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
END
Attribute VB_Name = "clsSanitize"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
'---------------------------------------------------------------------------------------
' Module : modSanitize
' Author : Adam Waller
' Date : 12/4/2020
' Purpose : Functions to sanitize files to remove non-essential metadata
'---------------------------------------------------------------------------------------
Option Compare Database
Option Private Module
Option Explicit

Private Const ModuleName = "modSanitize"
Expand Down

0 comments on commit 8e70ad2

Please sign in to comment.