Menu

#1 Eliminating line numbers from #If

open
nobody
None
5
2007-10-16
2007-10-16
Dean Grimm
No

Thanks for a great tool. The only problem I've come across, at least in my personal usage, is that line numbers are added in front of #If statements. Here's a patch that fixes it:

Index: clsLine.cls

--- clsLine.cls (revision 16)
+++ clsLine.cls (working copy)
@@ -197,7 +197,7 @@
104 v_strLine = modCommon.CleanLine(v_strLine)

106 With g_objRegEx
-108 .Pattern = "^On\sError\s|^End\s|^#End\s|^Case\s|^Dim\s|^Exit\s|^Loop|^Next|^Wend|^Else$|^#Else$|^Else:$|^#Else:$"
+108 .Pattern = "^On\sError\s|^#If\s|^End\s|^#End\s|^Case\s|^Dim\s|^Exit\s|^Loop|^Next|^Wend|^Else$|^#Else$|^Else:$|^#Else:$"
110 If .Test(v_strLine) Then
112 SkipNumbering = True
End If

Thanks again,
Dean

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.