Can I use an environment variable, such as DBASE1, as my database name in a 4gl program? I can get the environment variable with fgl_getenv (let dbase = fgl_getenv("DBASE")), but cannot seem to use it. I tried to prepare it in a variable like db_stmt = "DATABASE ",dbase CLIPPED, but cannot execute it because it is not a cursor. Any ideas?
I would also need to do this for .per forms that are used by the 4gl program (at least I think I would have to)
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts. The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.