#139 rxftp~FtpTrace() return code documented incorrectly

v3.0
closed
David Ashley
5
2012-08-14
2006-03-15
Gordon Keehn
No

For ooRexx 3.0.1 on Windows XP SP2

FtpTrace() is documented to return 0 if successful and
-1 if unsuccessful. In fact the method returns +1 if
successful. Since 0 and -1 are standard return code
throughout, it would make more sense to update the
method than the doc.

If Debug Then
Do
Say If myFTP~FtpTrace() = 1 /0/ Then
/ SpecError /
Do
If myFTP~FtpTraceLog( TraceLog, 1
/'REPLACE'/) = 0 Then / 1417973 /
Say programname' - FTP Trace activated on 'TraceLog
Else
Say programname' - FTP Trace not active. Code =
'myFTP~FtpErrNo'.'
End
Else
Say programname' - FTP Trace not available.
Code = 'myFTP~FtpErrNo'.'
End

Discussion

  • David Ashley
    David Ashley
    2006-03-15

    Logged In: YES
    user_id=931756

    The documentation is correct. I fixed the code. The fixed
    version is in CVS HEAD as version 1.10.

     


Anonymous


Cancel   Add attachments