Omitting arguments

Sometimes arguments to properties and methods can be omitted because they have been designated as optional. You may also wish to supply an empty or null value for a required argument. JScript and VBScript have different rules for doing this.

JScript

VBScript

Null required arguments

Required arguments, by definition, can never be omitted, but sometimes you can supply a null value, in both JScript and VBScript. There is no general rule governing this practice, and it should be approached with caution. Most of the time, if an argument is required, the semantics of the property or method require that a `real' value be supplied.


Right arrow
Next Topic
Left arrow
Previous Topic
Table of contents
Table of Contents

Copyright © SoftQuad Software Inc. 1999