Black Baptist wrote:
> Can anyone tell me why the following snippet of code gives the error
> 'inst.PathName' is null or not an object
>
>
>
> //extract just the file name
> var arrExe = inst.PathName.split("\\");
> var stateval = GetPropValue(svcs, "State", State);
> var startmodeval = GetPropValue(svcs, "StartMode", StartMode);
> oService.setValues(Name, arrExe[arrExe.length-1], stateval,
> startmodeval);
It means "inst.PathName.split" is either empty or has not been defined.
You need to make sure the object has been created.
--
x theSpaceGirl (miranda)
# lead designer @
http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #