![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| Guest | Is it possible to use Object.Object notation in vbscript ? If I create two or more classes, is it possible to use, X = Object.Object.propperty ? Such as Word application object accessing the Document object property |
My System Specs![]() |
| | #2 (permalink) |
| Guest | Re: Is it possible to use Object.Object notation in vbscript ? Quote: > If I create two or more classes, is it possible to use, > X = Object.Object.propperty ? > > Such as Word application object accessing the Document object property > with the IE DOM. But you seem to be mixing up classes and objects. Maybe you've got a .Net background? I think that .Net refers to classes where VBS/COM refers to objects. In VBS a class has a more specific definition. It's a script class. You could also reference a hierarchy of those if you like: Dim Cls1 Set Cls1 = New C1 Cls1.C1C2.SomethingOrOther Set Cls1 = Nothing Class C1 Public Property Get C1C2() Set C1C2 = New C2 End Property End Class Class C2 Public Sub SomethingOrOther() MsgBox "OK" End Sub End Class |
My System Specs![]() |
| | #3 (permalink) |
| Guest | Re: Is it possible to use Object.Object notation in vbscript ? Yes, that's what I was looking for.... Thanks so much... "Harold Little" <harold.little@xxxxxx> wrote in message news:%23x2TTX18JHA.1340@xxxxxx Quote: > If I create two or more classes, is it possible to use, > X = Object.Object.propperty ? > > Such as Word application object accessing the Document object property > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Inherit from usercontrol - Object not set to instance of an object | .NET General | |||
| Microsoft VBScript runtime error: Object doesn't support this property or method: 'WScript.Sleep' | VB Script | |||
| datalist -- Object reference not set to an instance of an object. | .NET General | |||
| Testing object arrays using Compare-Object and -contains | PowerShell | |||
| Adding canonical aliases for Compare-Object, Measure-Object, New-Object | PowerShell | |||