Function Example
Function Example
Sub CATMain()
Dim Box
End Sub
Multiplication = I * II
End Function
================================================
Sub CATMain()
Multiplication 1,3
End Sub
Dim Box
End Sub
=================================================
Sub CATMain()
Dim A,B
A =2
B =2
MsgBox("C = 2")
MsgBox("D = 1")
Else
MsgBox (A*B)
End If
End Sub
-------------------------------------------
Sub CATMain()
Dim A,B
A =2
B =2
MsgBox("C = 2")
MsgBox("D = 1")
Else
MsgBox (A*B)
End If
End Sub
==============================================
Sub CATMain()
Dim Input
Case "0"
MsgBox("Number =0")
Case "1" , "2"
MsgBox("Number>0")
Case Else
End select
End Sub
=============================================
For-Next Case
Sub CATMain()
Dim I, Sum
Sum=0
For I =0 To 10 Step 1
Sum = Sum + I
Next
MsgBox (Sum)
End Sub
==============================================
Do-While Case
Sub CATMain()
Dim I, Sum
Sum=0
Sum = Sum + I
I=I+1
Loop
MsgBox (Sum)
End Sub
===============================================
Do-Until Case
Sub CATMain()
Dim I, Sum
Sum=0
Do
Sum = Sum + I
I=I+1
MsgBox (Sum)
End Sub
===============================================
Object-Method-Class
Sub CATMain()
Dim Part
Dim Doc
MsgBox(Doc.Name)
MsgBox(Part.Name)
End Sub