| || |
Counting Bugs in QC
In the Sub Defects_EnterModule I would like to count the instances of bugs and have the count shown in a msgbox using QC API. Could someone help...
Re: Counting Bugs in QC
Take a look at the BugFactory API object. From it, you can use the 'NewList' method and then pull the count from the resulting list. Something like the following (this has not been tested)
<font class="small">Code:</font><hr /><pre>Set bf = TDConnection.BugFactory
Set list = bf.NewList("")
MsgBox "Bug Count = " & list.Count</pre><hr />
Hope this helps!