hi
toall
to call a function in a class I can use "call" keyword , but with out that also i can call the class function. so what is the use of call keyword
bye
Printable View
hi
toall
to call a function in a class I can use "call" keyword , but with out that also i can call the class function. so what is the use of call keyword
bye
call just runs a function as if it were a sub...ignoring the return value..
...hope helps..
VB Code:
Function math1(teacher As Long, student As Long) As Long math1 = teacher + student MsgBox math1 & " i am part of the function..." End Function Sub A1A1() MsgBox math1(2, 2) Call math1(2, 2) End Sub
bloody brain forgot...sorry...
VB Code:
MsgBox math1(2, 2) Call math1(2, 2) math1 5, 5 'so ya can tell..