C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
pgchart Error Codes
                                             Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
  Constant:  _PG_TOOFEWSERIES, _PG_TOOSMALLN, _PG_NOMEMORY,
             _PG_BADDATAWINDOW, _PG_BADLEGENDWINDOW, _PG_BADCHARTTYPE,
             _PG_BADSCREENMODE, _PG_NOTINITIALIZED, _PG_BADCHARTWINDOW,
             _PG_BADSCALEFACTOR, _PG_BADLOGBASE, _PG_BADCHARTSTYLE
 
  Include:   <pgchart.h>
 
  Context:   _pg_initchart and other _pg... functions
 
  Synopsis:  Error codes returned by the presentation-graphics
             functions. Error codes greater than 100 will terminate
             the chart routine; others will cause default values to
             be used.
 
     The pgchart error codes and their corresponding values and
     meanings are listed below:
 
     Constant                Value     Meaning
 
     _PG_TOOFEWSERIES        110       Number of series <=0
     _PG_TOOSMALLN           109       Number of data points <=0
     _PG_NOMEMORY            108       Not enough memory
     _PG_BADDATAWINDOW       107       Data window invalid
     _PG_BADLEGENDWINDOW     105       Legend window invalid
     _PG_BADCHARTTYPE        104       Chart type invalid
     _PG_BADSCREENMODE       103       Not in graphics mode
     _PG_NOTINITIALIZED      102       _pg_initchart has not been called
     _PG_BADCHARTWINDOW        7       x1=x2 or y1=y2 in chart window
     _PG_BADSCALEFACTOR        6       Scale factor=0
     _PG_BADLOGBASE            5       Log base <=0
     _PG_BADCHARTSTYLE         4       Chart style invalid
 
     The functions that can produce these error codes are listed
     below.
 
     Function               Possible Error Codes
 
     _pg_analyzechart       _PG_NOTINITIALIZED, _PG_BADCHARTSTYLE,
                            _PG_BADCHARTTYPE, _PG_BADLEGENDWINDOW,
                            _PG_BADCHARTWINDOW, _PG_BADDATAWINDOW,
                            _PG_NOMEMORY, _PG_BADLOGBASE,
                            _PG_BADSCALEFACTOR, _PG_TOOFEWSERIES
                            _PG_TOOSMALLN
 
     _pg_analyzechartms     (same as _pg_analyzechart)
 
     _pg_analyzepie         (same as _pg_analyzechart; does not return
                             _PG_TOOSMALLN)
 
     _pg_analyzescatter     (same as _pg_analyzechart)
 
     _pg_analyzescatterms   (same as _pg_analyzechart)
 
     _pg_chart              (same as _pg_analyzechart)
 
     _pg_chartms            (same as _pg_analyzechart)
 
     _pg_chartpie           (same as _pg_analyzechart)
 
     _pg_chartscatter       (same as _pg_analyzechart)
 
     _pg_chartscatterms     (same as _pg_analyzechart)
 
     _pg_defaultchart       _PG_BADCHARTTYPE
 
     _pg_hlabelchart        _PG_NOTINITIALIZED, _PG_BADCHARTWINDOW
 
     _pg_vlabelchart        _PG_NOTINITIALIZED, _PG_BADCHARTWINDOW
 
     _pg_initchart          _PG_BADSCREENMODE
 
     _pg_getchardef         _PG_NOTINITIALIZED
 
     _pg_setchardef         _PG_NOTINITIALIZED
 
     _pg_getpalette         _PG_BADSCREENMODE
 
     _pg_setpalette         _PG_BADSCREENMODE
 
     _pg_resetpalette       _PG_BADSCREENMODE
                                    -♦-