Quantcast
Channel: Quality Center / ALM Practitioners Forum topics
Viewing all articles
Browse latest Browse all 5491

Dim hierFilter As HierarchyFilter - User defined type not defined.

$
0
0

Hi all.

Used versions - QC8 and Excel 2007.

 

I am trying to display the total number of requiremnts in a folder. For this I have the bellow code.

 

Sub ReqNo ()

 

 On Error GoTo Err_Handler
    

 

   Dim reqF As ReqFactory
   
    Dim hierFilter As HierarchyFilter
    Dim reqHierL As HierarchySupportList, reqL As List
    Dim rq As Req


    Set TDConnection = CreateObject("TDApiOle80.TDConnection")

 

 

.....connection

.....log in

 


    Set reqF = TDConnection.ReqFactory
    Set hierFilter = reqF.Filter
    hierFilter("RQ_FATHER_ID") = 18
   
    hierFilter.KeepHierarchical = True
 

    Set reqHierL = hierFilter.NewList

    MsgBox (CStr(reqHierL.Count))

..........

 

 

When I try to run the code I got an error message at the line with Dim hierFilter As HierarchyFilter  - User defined type not defined.

 

What could be the issue?

 

Thanks in advance!

Vincent


Viewing all articles
Browse latest Browse all 5491

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>