tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 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