Re: RUN command RETURNING n

Mike Aubury <[email protected]>
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <CAGAq4WGbeWAFTs=mcM1GqQydMwe6EzPW1+CMFeZLWR5vSAy4XQ@mail.gmail.com>
RUN returns the exit status of the UNIX command it executes as an integer..
The value will typically depend on wether the command successfully runs.
You should be able to test using something like RUN "exit 1" or RUN "exit
0" etc.
Also - iirc the value may be shifted
On 1 Apr 2012 19:38, "Luis Carlos Díaz Otero" <[email protected]> wrote:

> Hi all.
>
> What type of data is returned by a program when i run it in the form RUN
> command RETURNING n ?
>
> I am trying to use it and always, in all the cases, the program returns a
> value equal to 256
> ...
> ...
> RUN myprogram.4ae RETURNING myvalue
> DISPLAY myvalue
> ...
> ...
>
> (myvalue is defined as integer)
> ---------------------------------------
> Inside the called program, i have:
> ...
> ...
> ...
> RETURN datavalue
> END MAIN
>
> (datavalue is defined as integer),
>
> And the data being displayed is always 256
>
> Cordial saludo:
>
> *Luis Carlos Díaz Otero
>
> *
> *Hay 10 clases de personas en el mundo: las que saben de números binarios
> y las que no*
> **
> *
> Asesoramos y acompañamos su presentación de tareas y trabajos de
> matemáticas:
> *
> http://www.facebook.com/pages/Asesorias-Matematicas/142808622433724?created
> **
> **
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Aubit4gl-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
>
>

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure

_______________________________________________
Aubit4gl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.