Results 1 to 4 of 4

Thread: what is call

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    8

    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

  2. #2
    Hyperactive Member
    Join Date
    May 2001
    Location
    TZI Transition Date
    Posts
    272

    Re: what is call

    call just runs a function as if it were a sub...ignoring the return value..

  3. #3
    Hyperactive Member
    Join Date
    May 2001
    Location
    TZI Transition Date
    Posts
    272

    Re: what is call

    ...hope helps..
    VB Code:
    1. Function math1(teacher As Long, student As Long) As Long
    2.     math1 = teacher + student
    3.     MsgBox math1 & " i am part of the function..."
    4. End Function
    5.  
    6. Sub A1A1()
    7.     MsgBox math1(2, 2)
    8.     Call math1(2, 2)
    9. End Sub

  4. #4
    Hyperactive Member
    Join Date
    May 2001
    Location
    TZI Transition Date
    Posts
    272

    Re: what is call

    bloody brain forgot...sorry...
    VB Code:
    1. MsgBox math1(2, 2)
    2.     Call math1(2, 2)
    3.     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
  •  



Click Here to Expand Forum to Full Width