#56 Error in standarddialog.sgml Example

3.3.0
closed
Mark Miesfeld
5
2012-08-14
2007-11-02
Lee Peedin
No

Example reads as follows:

GetSysMetrics

Queries a system metric value:

SM_CMONITORS = 80
metric = GetSysMetric(SM_CMONITORS)
say 'There are' metric 'monitors connected to this system.'

Example should read:

GetSysMetrics

Queries a system metric value:

SM_CMONITORS = 80
metric = GetSysMetrics(SM_CMONITORS)
say 'There are' metric 'monitors connected to this system.'

Patch attached

Lee

Discussion

  • Mark Miesfeld
    Mark Miesfeld
    2007-11-02

    Logged In: YES
    user_id=191588
    Originator: NO

    Good eyes Lee. Usually I try to copy the example in from working code. In this case I must have thought the code was so simple I could not go wrong. <grin>

     
  • Lee Peedin
    Lee Peedin
    2007-11-02

    Logged In: YES
    user_id=1223125
    Originator: YES

    Actually it wasn't my "eyes" that caught the error. It was my "copy/paste" of the example that "directed my eyes" to look real close. :-)

    Lee

     
  • Lee Peedin
    Lee Peedin
    2007-11-02

    Logged In: YES
    user_id=1223125
    Originator: YES

    Found another example in the same document that will abort is run as is.

    Comprehensive patch attached

    Lee
    File Added: standarddialog.sgml.patch

     
  • Mark Miesfeld
    Mark Miesfeld
    2007-11-04

    Logged In: YES
    user_id=191588
    Originator: NO

    Committed revision 1186.

    Thanks again Lee.

     


Anonymous


Cancel   Add attachments