![]() |
![]() |
![]() |
![]() |
Subs
|
Previous Top Next |
If there are no parameters for the sub, then write "Sub SubName" without the parentheses. Because parameter names are local names if a global name is used as a parameter name in a Sub definition then an error occurs.
There are no functions in B4Script but instead every Sub can return a value with the keyword "Return".
All parameters are passed by value. That is if an assignment is made to a parameter variable it only alters the value of that local variable and not that of the original variable.
"EndSub" is also accepted in place of "End Sub"
![]() |
![]() |
![]() |
![]() |
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |