#56 Error in standarddialog.sgml Example

3.3.0
closed
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

  • Lee Peedin

    Lee Peedin - 2007-11-02

    Patch for standarddialog.sgml

     
  • 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

     
  • Lee Peedin

    Lee Peedin - 2007-11-02

    Comprehensive Patch for standarddialog.sgml

     
  • Mark Miesfeld

    Mark Miesfeld - 2007-11-04

    Logged In: YES
    user_id=191588
    Originator: NO

    Committed revision 1186.

    Thanks again Lee.

     
  • Mark Miesfeld

    Mark Miesfeld - 2010-08-16

    Committed some time ago.

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks