Re: Scripting question...
| Date : Thu, 27 Dec 2007 14:00:02 -0500 |
| To : XSI(at)Softimage.COM |
| From : "Ponthieux, Joey" <j.ponthieux(at)nasa.gov> |
| Subject : Re: Scripting question... |
VBScript
Set oColl = CreateObject("XSI.Collection")
set oColl = XSIFactory.CreateActiveXObject( "XSI.Collection" )JScript
var oColl = new ActiveXObject("XSI.Collection") ;
var oColl = XSIFactory.CreateActiveXObject("XSI.Collection");So I think the question I really meant to ask was what is the difference between
var oColl = new ActiveXObject("XSI.Collection") ;
and
var oColl = XSIFactory.CreateActiveXObject("XSI.Collection");You've answered that in how it might relate to NetView, but if you are not writing scripts to be used in NetView is it otherwise assumed that they are identical commands? I've been using XSIFactory, I wasn't sure if this was considered the norm or the exception.
Thanks
Joey Ponthieux NCI Information Systems Inc. NASA Langley Research Center ____________________________________________________________ Opinions stated here-in are strictly those of the author and do not represent the opinions of NASA or any other party.
Bernard Lebel wrote:
There is no such thing as CreateObject in JScript. You're either referring to the VBScript function for creating ActiveX objects, or to new ActiveXObject() of JScript.
I was once told that using the XSIFactory methods in-place of the language constructs (new ActiveXObject() for JScript, CreateObject() for VBScript) prevented security issues when that code is ran in NetView, as ActiveX is generally considered unsecure in browsers. That's all I know!
Cheers Bernard
On Dec 27, 2007 11:21 AM, Ponthieux, Joey <j.ponthieux(at)nasa.gov> wrote:
---Is there any fundamental difference between
var oColl = XSIFactory.CreateActiveXObject("XSI.Collection");
and
var oColl = CreateObject( "XSI.Collection" );
and is it better to use one versus the other?
-- Joey Ponthieux NCI Information Systems Inc. NASA Langley Research Center ____________________________________________________________ Opinions stated here-in are strictly those of the author and do not represent the opinions of NASA or any other party.
--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi
--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi
- Follow-Ups:
- Re: Scripting question...
- From: "Bradley Gabe" <withanar(at)gmail.com>
- Re: Scripting question...
- References:
- Scripting question...
- From: "Ponthieux, Joey" <j.ponthieux(at)nasa.gov>
- Re: Scripting question...
- From: "Bernard Lebel" <3dbernard(at)gmail.com>
- Scripting question...
| DATE: | << | >> | THREAD: | << | >> | INDEX: | Main | Thread |
|---|
- Previous by Date: Re: Scripting question...
- Next by Date: Re: Scripting question...
- Previous by Thread: Re: Scripting question...
- Next by Thread: Re: Scripting question...
- Index(es):
| Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available. |