![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Try: dosServer. MDStores.Item(DSODatabaseName) HTH, Brian www.geocities.com/brianaltmann/olap.html "Paul_S" wrote: Hi, I'm new to .NET and trying to migrate VB6 to .NET. I have the following code that was fine in VB6... Dim dsoDatabase As DSO.MDStore dsoDatabase = New DSO.Database dsoDatabase = dsoServer.MDStores(DSODataBaseName) But getting the following error... (2327): Interface 'DSO.OlapCollection' cannot be indexed because it has no default property. The text 'dsoServer.MDStores' in the third line is the highlighted bit for the error. The help file has not really helped - what am I missing (apart from a brain!) Ta Paul |
#2
| |||
| |||
|
|
Try: dosServer. MDStores.Item(DSODatabaseName) HTH, Brian www.geocities.com/brianaltmann/olap.html "Paul_S" wrote: Hi, I'm new to .NET and trying to migrate VB6 to .NET. I have the following code that was fine in VB6... Dim dsoDatabase As DSO.MDStore dsoDatabase = New DSO.Database dsoDatabase = dsoServer.MDStores(DSODataBaseName) But getting the following error... (2327): Interface 'DSO.OlapCollection' cannot be indexed because it has no default property. The text 'dsoServer.MDStores' in the third line is the highlighted bit for the error. The help file has not really helped - what am I missing (apart from a brain!) Ta Paul |
#3
| |||
| |||
|
|
A good resource for how to use DSO with .NET COM interop is the DSO/XML source kit located at: http://www.microsoft.com/downloads/d...DisplayLang=en -- Dave Wickert [MSFT] dwickert (AT) online (DOT) microsoft.com Program Manager BI SystemsTeam SQL BI Product Unit (Analysis Services) -- This posting is provided "AS IS" with no warranties, and confers no rights. "Brian Altmann" <findme@thesignaturewebsite> wrote in message news:FC30754B-2376-47CC-B275-ABEA4333ED07 (AT) microsoft (DOT) com... Try: dosServer. MDStores.Item(DSODatabaseName) HTH, Brian www.geocities.com/brianaltmann/olap.html "Paul_S" wrote: Hi, I'm new to .NET and trying to migrate VB6 to .NET. I have the following code that was fine in VB6... Dim dsoDatabase As DSO.MDStore dsoDatabase = New DSO.Database dsoDatabase = dsoServer.MDStores(DSODataBaseName) But getting the following error... (2327): Interface 'DSO.OlapCollection' cannot be indexed because it has no default property. The text 'dsoServer.MDStores' in the third line is the highlighted bit for the error. The help file has not really helped - what am I missing (apart from a brain!) Ta Paul |
![]() |
| Thread Tools | |
| Display Modes | |
| |