Discussion Locked

VB Script?

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

In this line of code what would the definition of an argument be?
Sub mysub(argument1,argument2)
some statements
End Sub
Thanks

Daniel

3 replies

by hclarius

Arguments are variables you pass to a procedure or function. Arguments in the arguement list are separated by commas(if there are more than 1). If you don't specify the arguement type (AS type) it will default to variant.
Sub CompareInt(I,J)
If I>J Beep
End Sub

This discussion is closed to new replies.