Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Call-an-object-method/VBA/call-an-object-method-1.vba
Normal file
13
Task/Call-an-object-method/VBA/call-an-object-method-1.vba
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
Option Explicit
|
||||
|
||||
Sub Method_1(Optional myStr As String)
|
||||
Dim strTemp As String
|
||||
If myStr <> "" Then strTemp = myStr
|
||||
Debug.Print strTemp
|
||||
End Sub
|
||||
|
||||
Static Sub Method_2(Optional myStr As String)
|
||||
Dim strTemp As String
|
||||
If myStr <> "" Then strTemp = myStr
|
||||
Debug.Print strTemp
|
||||
End Sub
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
Option Explicit
|
||||
|
||||
Sub test()
|
||||
Dim Obj As New myObject
|
||||
Obj.Method_1 "Hello to you"
|
||||
Obj.Method_2 "What is your name ?"
|
||||
Obj.Method_1
|
||||
Obj.Method_2
|
||||
End Sub
|
||||
Loading…
Add table
Add a link
Reference in a new issue