PDA

Click to See Complete Forum and Search --> : Call statement


atjs
Nov 1st, 1999, 07:39 AM
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.

PhilipG
Nov 1st, 1999, 07:44 AM
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