Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Use of RxFtp by LOADFUNCS?

51 views
Skip to first unread message

Bu...@somewhere.com

unread,
Feb 11, 2012, 12:09:19 PM2/11/12
to
Anyone have an example of loading RxFtp library using the old-fashioned
"RxFuncAdd"? Trying to modify an older, non object oriented, rexx program.
Buck

Sahananda

unread,
Feb 12, 2012, 1:09:11 AM2/12/12
to
Hi Buck,

Not sure if this is an ooRexx question, but if it is:

The RxFtp Library was not passed to RexxLa from IBM when Object Rexx
was open-sourced to become ooRexx (I can't now remember why).
It was replaced by the RxFtp class.

If you have the RxFtp.dll remaining from a copy of IBM Object Rexx
then I believe there are no technical reasons (though you may have
licensing reasons) why you cannot use it by placing it in the path &
you can find an example program at the back of the rxFtp manual that
came with that edition - a copy of the 2.1 edition manual can
currently be found here:
http://wi.wu-wien.ac.at/rgf/rexx/tmp/rxftp.pdf

Otherwise your best bet is to convert the code to use the rxFtp class
that comes with ooRexx.

An example of it's use can be found here:
http://www.oorexx.org/docs/rxftp/rxftp.pdf
at the end of the manual.

As your code is completely non oo, then you will need to append this
as the last line of the code:
::requires 'rxFtp.cls'

You can then remove the rxFuncAdd and ftploadfuncs lines
Instead you will have to acquire an rxFtp object

myFtp = .rxftp~new()

You may have to make sure that the variable myFtp is in scope wherever
you need to call it by EXPOSEing it.

Then you have to replace the calls to rxFtp functions in the code to
call the equivalent rxFtp methods, for instance:
rc = FtpTrace()
would become
rc = myFtp~FtpTrace()

If you have difficulties with this, I'm sure that you can find help
here or on the rexxLa list.

hth

Jon

Swifty

unread,
Feb 12, 2012, 5:21:19 AM2/12/12
to
On Sat, 11 Feb 2012 17:09:19 GMT, Bu...@somewhere.com wrote:

>Anyone have an example of loading RxFtp library using the old-fashioned
>"RxFuncAdd"?

if RxFuncQuery('FtpDropFuncs') then do
rc = RxFuncAdd("FTPLoadFuncs","rxftp","FTPLoadFuncs")
rc = FtpLoadFuncs()
end

From my IBM Object Rexx documentation.

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk

Bu...@somewhere.com

unread,
Feb 20, 2012, 12:59:28 PM2/20/12
to
Thanks much, Jon. You did understand what I was trying to ask. Plan to
begin trying your suggestions next week.

Sahananda

unread,
Feb 20, 2012, 2:55:30 PM2/20/12
to
On Feb 20, 5:59 pm, B...@somewhere.com wrote:
> Thanks much, Jon.   You did understand what I was trying to ask.   Plan to
> begin trying your suggestions next week.

My pleasure. I forgot to say, but you should also delete or noop the
rxdropfunc line if it is there in your original code.

Jon
0 new messages