|
-
Apr 8th, 2005, 02:14 AM
#1
Thread Starter
New Member
what is call
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
-
Apr 8th, 2005, 02:18 AM
#2
Hyperactive Member
Re: what is call
call just runs a function as if it were a sub...ignoring the return value..
-
Apr 8th, 2005, 02:53 AM
#3
Hyperactive Member
Re: what is call
...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
-
Apr 8th, 2005, 02:58 AM
#4
Hyperactive Member
Re: what is call
bloody brain forgot...sorry...
VB Code:
MsgBox math1(2, 2)
Call math1(2, 2)
math1 5, 5 'so ya can tell..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|