Don't understand 'Set' 
Author Message
 Don't understand 'Set'

If I'm using msxml2.XSLTemplate I can createProcessor and retrieve an
IXSLProcessor that has input and output properties.
If I want to set the output to write to the Response object from ASP
according to the Microsoft examples I write:
xslProc.output = Response
xslProc.transform()
Why don't I have to write:
Set xslProc.output = Response
xslProc.transform()

Joe



Mon, 25 Apr 2005 18:14:14 GMT  
 Don't understand 'Set'
Set for property? I've not yet seen such syntax.
/output/ property wants stream object. We simply feed it. Coffee or
something may be more helpful than my reply ;)

--
Han Pohwan, Microsoft MVP, Seoul, Korea
Mail with any alphabets in the title will be removed. Use only numbers.

Quote:
> If I'm using msxml2.XSLTemplate I can createProcessor and retrieve an
> IXSLProcessor that has input and output properties.
> If I want to set the output to write to the Response object from ASP
> according to the Microsoft examples I write:
> xslProc.output = Response
> xslProc.transform()
> Why don't I have to write:
> Set xslProc.output = Response
> xslProc.transform()

> Joe



Mon, 25 Apr 2005 19:15:59 GMT  
 Don't understand 'Set'

Quote:
> Set for property? I've not yet seen such syntax.
> /output/ property wants stream object. We simply feed it. Coffee or
> something may be more helpful than my reply ;)

> --

Well you haven't seen much VBScript programming then...
How do you assign an adodb.connection to a command object's activeConnection
in VBScript?
Joe


Mon, 25 Apr 2005 19:52:22 GMT  
 Don't understand 'Set'

Quote:


>> Set for property? I've not yet seen such syntax.
>> /output/ property wants stream object. We simply feed it. Coffee or
>> something may be more helpful than my reply ;)

>> --
> Well you haven't seen much VBScript programming then...
> How do you assign an adodb.connection to a command object's
> activeConnection in VBScript?
> Joe

The short answer, Joe, is "because it's written that way!".  Seriously... <g>

It looks to me like it behaves like an object, but in reality you aren't setting
a reference to anything.  You are if anything apparently connecting two object
interfaces, and are not using any un-set variables to do it.

--
Please respond in the newsgroup so everyone may benefit.
 http://dev.remotenetworktechnology.com
 ----------
 Subscribe to Microsoft's Security Bulletins:
 http://www.microsoft.com/technet/security/bulletin/notify.asp



Mon, 25 Apr 2005 20:20:51 GMT  
 Don't understand 'Set'
/set/ statement is not needed to assign an adodb.connection to a command's
activeConnection. I think you can try it yourself. I remember that had been
discussed in ADO group.

However I was wrong because MSDN I just refered is defining /set/ as /assign
object reference to a variable or a property/. Official or something.

--
Han Pohwan, Microsoft MVP, Seoul, Korea
Mail with any alphabets in the title will be removed. Use only numbers.

Quote:


> > Set for property? I've not yet seen such syntax.
> > /output/ property wants stream object. We simply feed it. Coffee or
> > something may be more helpful than my reply ;)

> > --
> Well you haven't seen much VBScript programming then...
> How do you assign an adodb.connection to a command object's
activeConnection
> in VBScript?
> Joe



Mon, 25 Apr 2005 21:11:45 GMT  
 Don't understand 'Set'

Quote:

> If I'm using msxml2.XSLTemplate I can createProcessor and retrieve an
> IXSLProcessor that has input and output properties.
> If I want to set the output to write to the Response object from ASP
> according to the Microsoft examples I write:
> xslProc.output = Response
> xslProc.transform()
> Why don't I have to write:
> Set xslProc.output = Response
> xslProc.transform()

The answer is that the XML object model is a little quirky ;-)...

You have the same odd, unintuitive syntax for assigning

    domdocument.onreadystatechange = GetRef("myVBScriptHandler")
    xmlhttp.onreadystatechange = GetRef("myVBScriptHandler")

that works only if you *omit* the Set...

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US



Tue, 26 Apr 2005 03:55:50 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. API/function doesn't stop and I don't understand it :o)

2. I don't understand....Is this a bug of WSH

3. H E L P or don't you understand my cuestion

4. Script errors I don't understand

5. charpath, I don't understand

6. I don't understand....Is this a bug of WSH

7. Don't understand dim statements

8. Help - Don't understand anchors.

9. ADO: I don't understand...

10. I still don't understand......

11. ADO: I don't understand...

12. Don't understand this error

 

 
Powered by phpBB® Forum Software