Contoh :
Memberikan nilai langsung
Dim x As Integer
x = 100
Memberikan nilai dari variable lain
Dim x As Integer
Dim y As Integer
x = 100
y = x
Memberikan nilai dari property object
Dim x As Integer
Dim y As Integer
x = cmdOK.Width
y = cmdOK.Height
Memberikan nilai ke property object
Dim x As Integer, y As Integer
x = 200: y = 100
cmdOK.Width = x
cmdOK.Height = y
Memberi nilai dari hasil operasi
Dim x As Integer, y As Integer, z as Integer
x = 200: y = 100
z = x + y
Operator Penugasan Lainnya
Click here if you like this article.
0 Comments