Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Pangram-checker/VBA/pangram-checker.vba
Normal file
14
Task/Pangram-checker/VBA/pangram-checker.vba
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
Function pangram2(s As String) As Boolean
|
||||
Const sKey As String = "abcdefghijklmnopqrstuvwxyz"
|
||||
Dim sLow As String
|
||||
Dim i As Integer
|
||||
|
||||
sLow = LCase(s)
|
||||
For i = 1 To 26
|
||||
If InStr(sLow, Mid(sKey, i, 1)) = 0 Then
|
||||
pangram2 = False
|
||||
Exit Function
|
||||
End If
|
||||
Next
|
||||
pangram2 = True
|
||||
End Function
|
||||
Loading…
Add table
Add a link
Reference in a new issue