Phantom Documentation

[Help Home] [Phantom Home]
GetWarningCount
int GetWarningCount()

Return Type: int
Parameters: none

Description:

GetWarningCount returns the number of warnings issued. Warnings that are processed using a try-catch statement, and not thrown, will not add to this count.

Example Code
1 >>real r = -12.0;
2 >>if(r < 0.0){
3 >> LogWarning("Value < 0.0!");
4 >>}
** WARNING: (1) from 'Console' on Line 3 – Value < 0.0!
5 >>disp(GetWarningCount());
1



Copyright 2000-2011 Phantom Automated Solutions