June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -3,3 +3,6 @@ MyClass::method(someParameter);
|
|||
|
||||
// Instance
|
||||
myInstance.method(someParameter);
|
||||
|
||||
// Pointer
|
||||
MyPointer->method(someParameter);
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
console printLine("Hello"," ","World!").
|
||||
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