Skip to content

Commit 8e70ad2

Browse files
Convert Sanitize module to class
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.)
1 parent 1ca6886 commit 8e70ad2

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Version Control.accda.src/modules/modSanitize.bas renamed to Version Control.accda.src/modules/clsSanitize.cls

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1-
Attribute VB_Name = "modSanitize"
1+
VERSION 1.0 CLASS
2+
BEGIN
3+
MultiUse = -1 'True
4+
END
5+
Attribute VB_Name = "clsSanitize"
6+
Attribute VB_GlobalNameSpace = False
7+
Attribute VB_Creatable = False
8+
Attribute VB_PredeclaredId = False
9+
Attribute VB_Exposed = False
210
'---------------------------------------------------------------------------------------
311
' Module : modSanitize
412
' Author : Adam Waller
513
' Date : 12/4/2020
614
' Purpose : Functions to sanitize files to remove non-essential metadata
715
'---------------------------------------------------------------------------------------
816
Option Compare Database
9-
Option Private Module
1017
Option Explicit
1118

1219
Private Const ModuleName = "modSanitize"

0 commit comments

Comments
 (0)