Last active
July 8, 2019 11:02
-
-
Save eggist77/04d2635b9c4b4c4e026d67c6c6eed208 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' --------------------------------------------------- | |
' description: | |
' auther: name | |
' version: 1.0 | |
' since: yyyy/mm/dd | |
' update: yyyy/mm/dd | |
' --------------------------------------------------- | |
Option Explicit | |
'variable declaration | |
Dim x | |
main() | |
'Sub Procedure | |
Sub main() | |
Exit Sub | |
End Sub | |
'Function Procedure | |
Function Func() | |
'Function | |
End Function | |
'conditional expression | |
'IF | |
If X=1 Then | |
Msgbox "test" | |
ElseIf x=2 Then | |
Msgbox "test" | |
Else | |
Msgbox "test" | |
End If | |
'Do1 | |
Do While x=1 | |
Msgbox "test" | |
Exit Do | |
Loop | |
'Do2 | |
Do | |
Msgbox "test" | |
Exit Do | |
Loop Until x=1 | |
'For1 | |
For i = 0 To 5 Step 1 | |
Msgbox "test" | |
Exit For | |
Next | |
'For2 | |
For Each item In items | |
Msgbox "test" | |
Next |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment