Re: Environment variables and 4GL
Posted in 1992
> Read the Shell-Variable DBPRINT into Your 4gl-Program, change it, when > You want and use OUTPUT TO PIPE. I'm using this construction do print > normal paper with hopper 1 or printer A and to print labels on printer B > or with hopper 2. I use DBPRINT and a second Shell-variable DBETIK > (Etikett is the german word for label). > What is the means by which you are accessing the value of the DBPRINT variable from within your 4GL program? I'm not a regular 4GL programmer, but I was looking through the manuals the other day and could not find anything in the index or appendices that told me how to do it. I can see how to do it easily enough by calling an external C function and from within C using the getenv() system call, but isn't there any easier way from within 4GL itself? Thanks -- +--------------------+-------------------------------------------------------+ | Michael Faurot | Domain: mfaurot@bogart.UUCP | | ------- ------ | UUCP: ...uunet!media!ka3ovk!irscscm!bogart!mfaurot | +--------------------+-------------------------------------------------------+ | Fax: 202-927-3999 | The real problem is not whether machines think | | Tel: 202-927-2896 | but whether men do. --B.F. Skinner | +--------------------+-------------------------------------------------------+