|
-
Dec 30th, 2011, 06:35 PM
#6
Re: Porting a function from vb.NET to VB6
Unlike .Net, VB has a tendency to pass what is in parentheses as an evaluated expression, when not assigning a value to the return or in the case of subroutines. If it can't be evaluated -- syntax error. If no value will be returned, then one of the following is preferred
a) Call SomeSub(lparam, wparam)
b) SomeSub lparam, wparam
Edited: same with a function. If you don't need nor care about the function's return value, then a function can be called the same as subroutine described above.
Last edited by LaVolpe; Dec 30th, 2011 at 06:45 PM.
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
|