Results 1 to 2 of 2

Thread: Call statement

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 1999
    Location
    Singapore
    Posts
    32

    Post

    Anyone knows what the 'Call' command does? Seems that I have never used it in my life, but VB examples all over the 'net (especially in the DirectX SDK) use it to start practically every single function. What I do is just run the function without using parenthesis (brackets) around the parameters.

  2. #2
    Addicted Member
    Join Date
    Oct 1999
    Location
    Dallas,TX
    Posts
    170

    Post

    If you use parenthesis around your arguments, you have to use the Call keyword. Some programers use Call always because it makes your code easier to read.

    Valid:
    Call unload(Me)
    unload Me

    Invalid:
    Call unload Me
    unload(me)

    HTH,
    Phil

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