Skip to content

Update lint_vba.yml #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
4 changes: 3 additions & 1 deletion .github/workflows/lint_vba.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Lint
uses: Vba-actions/lint-vba@main
uses: Vba-actions/lint-vba@dev
with:
path: './src'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Features
Setup
-----

Open Microsoft Visual Basic For Applications and import each cls and bas and frm file into a new project. Name the project SQLlib and save it as an xlam file. Enable the addin. Within Microsoft Visual Basic For Applications, select Tools>References and ensure that "Microsoft ActiveX Data Objects x.x Library", "Microsoft Scripting Runtime", and SQLlib is selected.
Open Microsoft Visual Basic For Applications and import each cls and bas and frm file into a new project. Name the project SQLlib and save it as an xlam file. Enable the addin. Within Microsoft Visual Basic For Applications, select Tools>References and ensure that "Microsoft ActiveX Data Objects x.x Library", "Microsoft Scripting Runtime", and SQLlib is selected.

Security
-----
Expand Down
2 changes: 1 addition & 1 deletion src/ClassModules/SQLDatabase.cls
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Public Function Execute(oSQL As iSQLQuery, Optional return_column = "")
If return_column <> "" Then
If rst.EOF Then
Execute = False
Else
Else
Execute = rst.GetValue(return_column)
End If
Else
Expand Down
4 changes: 2 additions & 2 deletions src/ClassModules/SQLSelect.cls
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ Public Function iSQLQuery_ToString() As String
If UBound(vFields) < 0 Then
return_string = ""
Else
return_string = "SELECT " & DistinctString & FieldList & " FROM " & _
JoinString & oSQL.WhereString & GroupByString & HavingString & OrderByString
return_string = "SELECT " & DistinctString & FieldList & " FROM " & JoinString & _
oSQL.WhereString & GroupByString & HavingString & OrderByString
End If
iSQLQuery_ToString = oSQL.ReplaceArguments(return_string)
End Function
Expand Down
2 changes: 1 addition & 1 deletion src/ClassModules/iSQLRecordset.cls
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Public Function GetValue(MyFieldname)
End Function

' Function: GetValue
Public Function GetRows(num as Integer)
Public Function GetRows(num As Integer)

End Function

Expand Down
4 changes: 2 additions & 2 deletions src/Modules/SQLHelperFunctions.bas
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Public Function str(vValue) As String
End Function

Function JoinArrayofArrays(ByVal vArray As Variant, _
Optional ByVal WordDelim As String = " ", _
Optional ByVal LineDelim As String = vbNewLine) As String
Optional ByVal WordDelim As String = " ", _
Optional ByVal LineDelim As String = vbNewLine) As String
Dim R As Long, Lines() As String
ReDim Lines(0 To UBound(vArray))
For R = 0 To UBound(vArray)
Expand Down