Re: Dumb Question
From: Ben Bangham (ben.bangham_at_britishcouncil.org)
Date: 08/18/04
- Next message: Thomas Zangl: "Problem calling the static EnableDNS method"
- Previous message: Stanislav Efremov: "Perfomance problem while passing large data volumes via WMI"
- In reply to: Angelo Campitelli: "Dumb Question"
- Next in thread: Angelo Campitelli: "Re: Dumb Question"
- Reply: Angelo Campitelli: "Re: Dumb Question"
- Messages sorted by: [ date ] [ thread ]
Date: 18 Aug 2004 08:37:30 -0700
"Angelo Campitelli" <campitellian@sac.qld.edu.au> wrote in message news:<OnpiVBNhEHA.2620@TK2MSFTNGP10.phx.gbl>...
> Dumb question but with vb script how can i check if colItems contains any
> results?
>
> ive tied isCollection, isNothing and isEmpty none seem to return true/false
> if results are returned
>
[snip code]
you want to compare your object reference to the built-in object 'nothing':
if colItems is nothing then wscript.echo "No such drive"
...I suppose this is the vbscript equivilant to comparing a pointer to NULL in C...
HTH,
Ben.
- Next message: Thomas Zangl: "Problem calling the static EnableDNS method"
- Previous message: Stanislav Efremov: "Perfomance problem while passing large data volumes via WMI"
- In reply to: Angelo Campitelli: "Dumb Question"
- Next in thread: Angelo Campitelli: "Re: Dumb Question"
- Reply: Angelo Campitelli: "Re: Dumb Question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|