Menu

#515 RxFTP sample fails with error 93.914

v4.0
closed
5
2012-08-14
2008-07-07
Aviatrexx
No

The FTP sample program in Appendix A of "ooRexx RxFTP Reference" (rxftp.pdf) fails with error 93.914 due to an invalid second parameter passed to FtpTraceLog.

Platform is Windows XP Pro SP2.

C:\Chip\bin>rexx ftpsamp.rex
1882 - raise syntax 93.914 array (2, 'R', mode)
13 - retc = myftp~FtpTraceLog( trclog, "1")
Error 93 running C:\Program Files\ooRexx\rxftp.cls line 1882: Incorrect call to
method
Error 93.914: Method argument 2 must be one of R; found "1"

C:\Chip\bin>rexx -v
Open Object Rexx Interpreter Version 3.2.0
Build date: Oct 30 2007
<boilerplate text="" omitted="">

C:\Chip\bin>type ftpsamp.rex
/==============================================================/
/ Basic RxFTP sample to send a file with cmd/reply logging /
/==============================================================/
/ Define the variables for: /
server = "www.aresti.com" / IP address or server name /
userid = "*"
passwd = "*
"
trclog = "logfile.txt" / Trace log file name /
retc = 0 / Set return code to 0 /
myftp = .rxftp~new()
/ Start tracing FTP commands and logging of replies /
retc = myftp~FtpTrace()
retc = myftp~FtpTraceLog( trclog, "1")
If retc = 0 then Say " Replies will be written to log file: "trclog"."
Else Say " No writing to log file: "trclog" possible."
/ Define remote host and user to be used during the session /
<remainder of="" sample="" code="" omitted="">

Discussion

  • Mark Miesfeld

    Mark Miesfeld - 2008-07-07

    Logged In: YES
    user_id=191588
    Originator: NO

    Committed revision 2678.

    I fixed the example in the doc to use the correct second argument.

     
  • Mark Miesfeld

    Mark Miesfeld - 2010-02-22

    Doc fix was in the 4.0.0 release docs.

     

Anonymous
Anonymous

Add attachments
Cancel