C (131/254)

From:amiga-c
Date:17 Apr 00 at 15:36:53
Subject:Re: Rexx-Result?

On Wednesday April 12 2000, Rudolph-Riedel@t-Online.de said to All:

RRO> ----
RRO> long result;
RRO> result=0;
RRO> ----

RRO> So result is "0" if the file exist, "1" if it`s a dir and "-1" if the
RRO> file doesn`t exist.

Ahhh.. I see the problem. Result2 must be set as a 'Rexx String' - it's
typecast as a long, but it must hold a string pointer. Try this:

UBYTE *res;

res = "0";
rm->rm_Result2 = (LONG)CreateArgstring( res, strlen( res ) )



Neil Williams, Cymru. mailto:neil@aio.co.uk ICQ:18223711 2:442/107
AIO: http://www.aio.co.uk TKG: http://www.tkgbbs.freeserve.co.uk
Zeus Developments, BBS s/w: http://www.bleach.demon.co.uk/zeus/

------------------------------------------------------------------------
Avoid the lines and visit avis.com for quick and easy online
reservations. Enjoy a compact car nationwide for only $29 a day!
Click here for more details.
http://click.egroups.com/1/3011/1/_/451227/_/956078748/
------------------------------------------------------------------------