Contoh Penggunaan DIM
Dim [variable
name] As [Type]
Dim count As Long
Dim amount As Currency
Dim name As String
Dim visible As Boolean
Dim [variable
name] As String * [size]
Dim s As String *
4
Dim t As String *
10
Dim [variable
name] As Variant
Dim [variable
name]
Dim var As Variant
Dim var
Dim [variable
name] As New [object type]
Dim coll As New Collection
Dim coll As New Class1
Dim [variable
name] As [object type]
Set [variable
name] = New [object type]
Dim coll As Collection
Set coll
= New Collection
Dim coll As Class1
Set coll
= New Class1
Dim [variable
name]([first] To [last] ) As [Type]
Dim arr(1 To 6) As Long
Dim [variable
name]() As [Type]
ReDim [variable
name]([first] To [last])
Dim arr() As Long
ReDim arr(1 To 6)
Dim [variable
name] As New [item]
Dim dict As New Dictionary
Dim [variable
name] As [item]
Set [variable
name] = New [item]
Dim dict As Dictionary
Set dict
= New Dictonary
Dim [variable
name] As Object
Set [variable
name] = CreateObject("[library]")
Dim dict As Object
Set dict
= CreateObject("Scripting.Dictionary")
No comments:
Post a Comment