# WarningCount and HintCount properties working?

**URL:** https://www.finalbuilder.com/forums/t/warningcount-and-hintcount-properties-working/1755
**Category:** Discussion
**Created:** [May 16, 2011, 10:18am UTC](https://www.finalbuilder.com/forums/t/warningcount-and-hintcount-properties-working/1755 "2011-05-16T10:18:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ollis](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/o/f1d935/32.png) [@ollis](https://www.finalbuilder.com/forums/u/ollis)
#### Post date: [May 16, 2011, 10:18am UTC](https://www.finalbuilder.com/forums/t/warningcount-and-hintcount-properties-working/1755/1 "2011-05-16T10:18:35Z")

</div>

Hello,

We're using current official FB&nbsp;release (7.0.0.1065), and noticed that the Build Delphi Project action has WarningCount and HintCount properties. We attempted to get these values from AfterAction -script, but they appear to be always 0 even though the project built has warnings or hints.

We could not find any documentation concerning these, so are they operational and how can these values be catched to FinalBuilder variables?

---

<div class="post-metadata">

### Author: ![stephen.ryan](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@stephen.ryan](https://www.finalbuilder.com/forums/u/stephen.ryan)
#### Post date: [May 17, 2011, 2:15am UTC](https://www.finalbuilder.com/forums/t/warningcount-and-hintcount-properties-working/1755/2 "2011-05-17T02:15:22Z")

</div>

Hi   
  
 How are you accessing these values? Could you try using the following script, I have tested it here and the values are reporting the correct values:   
  
 Javascript:   
 [code]Action.SendLogMessage("Hints: " + Action.HintCount, stInformation);Action.SendLogMessage("Warnings: " + Action.WarningCount, stInformation);if (Action.WarningCount \> 0){ Action.SendLogMessage("Failing Action due to warnings", stError); ActionResult = false; Continue = false;} [/code]   
  
 Regards,   
 Steve
