![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have the following segment of code in VB that works just fine (it's a DSO method call). It won't work in VBScript (DTS ActiveX task). When I debug I get "Microsoft VBScript runtime error: Type mismatch: 'dsoPartitionAnalyzer.NextAnalysisStep'". I've tried explicitly casting the parameter variables with conversion functions prior to the method call and I still get the same error. I also tried "ByRef" and that wouldn't even parse successfully. Is this something I can't do in VBScript? === Code segment === Set dsoPartitionAnalyzer = dsoPartition.Analyzer ' Initialize the analyzer. dsoPartitionAnalyzer.InitializeDesign . . . . Do While dsoPartitionAnalyzer.NextAnalysisStep(PercentageBe nefit, AccumulatedSize, AggregationsCount) If PercentageBenefit > 100 Then Exit Do End If Loop === End code segment === Thanks in advance!! Erin |
![]() |
| Thread Tools | |
| Display Modes | |
| |