Re: Set an environment variable from within a 4GL program?
Posted in 1995
In article <3kfsor$9a4@news.informix.com>, proberts@lynx.informix.com (Paul Roberts) writes: |> TIPASQB (this is probably a silly question but): |> |> Can I set an environment variable from within a 4GL program and have |> it be `effective' in the subsequent running of the program? |> <snip> |> but this seems rather ugly. Is there a function that will allow |> me to set the value of the environment variable within the current shell? |> |> Thanks ... |> |> Paul |> |> |> I don't think there is any easy way out. Informix does have a function to test the value of an environment variable (fgl_getenv). However there is no provision to set an env. variable. All you can do is link your 4gl code with a 'c' routine which will set your environment as per your needs. Hope this helps. Drop me a line if you are unfamiliar with 'c' and '4gl' linking. -- ajay chitale +email: achit@puma.miel.mot.com +voice: 91-80-2278545