JavaScript vs VB Script in Microsoft Scripting engines
rossenbg_at_hotmail.com
Date: 11/01/04
- Next message: rossenbg_at_hotmail.com: "Re: JavaScript vs VB Script in Microsoft Scripting engines"
- Previous message: Alexander Nickolov: "Re: Access violation from console app when exiting after loading com object - why?"
- Next in thread: rossenbg_at_hotmail.com: "Re: JavaScript vs VB Script in Microsoft Scripting engines"
- Reply: rossenbg_at_hotmail.com: "Re: JavaScript vs VB Script in Microsoft Scripting engines"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 01 Nov 2004 06:43:51 +0200
Hi all,
I have had recently strange behaviour using JavaScript and VBScript
engines, provided with Micorsoft Windows. It appears that when JS
scripting engine is used, working with objects, inside JS functions, does
not work. For example parsing code like:
function some()
{
var cnt = someobject.count;
...
}
some();
will give me an error, because inside the function the result returned by
"someobject.count" is invalid ( VT_EMPTY ). I've debug the application and
"propget" for "count" is never called. But if I parse only this:
var cnt = someobject.count;
then everything is just fine. In VisualBasic all the cases are OK. Do any
of you had such behaviour using MS JavaScript and how this was solved?
Cheers
-- Rossen Tzonev Sofia, Bulgaria
- Next message: rossenbg_at_hotmail.com: "Re: JavaScript vs VB Script in Microsoft Scripting engines"
- Previous message: Alexander Nickolov: "Re: Access violation from console app when exiting after loading com object - why?"
- Next in thread: rossenbg_at_hotmail.com: "Re: JavaScript vs VB Script in Microsoft Scripting engines"
- Reply: rossenbg_at_hotmail.com: "Re: JavaScript vs VB Script in Microsoft Scripting engines"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|