Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

IsMissing in VBScript?

240 views
Skip to first unread message

john....@dot.state.wi.us

unread,
Jun 21, 1999, 3:00:00 AM6/21/99
to
VBA has an IsMissing Function.

Is there one in VBScript? A different name, but equivalent?

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

Dan Read

unread,
Jun 21, 1999, 3:00:00 AM6/21/99
to
My guess is that since Optional parameters are not supported in
VBScript, that the IsMissing operator will not work either. There are
some strange behaviors that can result from IsMissing anyway, and I
never use it. Instead, I give all my Optional parameters default
values that I can then check at the top of the procedure. You could
use this technique as well in VBScript by having the calling code pass
empty or specific values in parameters it wishes to omit. For example,
a Long parameter could be a -1, or a String parameter could be an empty
string or something like "[~~~OMITTED~~~]"

HTH,
Dan Read

In article <7kmb7j$mem$1...@nnrp1.deja.com>,

Michael Harris

unread,
Jun 21, 1999, 3:00:00 AM6/21/99
to
IsMissing is used to test for missing optional variant arguments. VBScript
doesn't support the Optional keyword need for optional arguments and thus
doesn't support (or have a need for) IsMissing.

--
Michael Harris

<john....@dot.state.wi.us> wrote in message
news:7kmb7j$mem$1...@nnrp1.deja.com...

0 new messages