Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change the directory for open form 1

Status
Not open for further replies.

greggory

IS-IT--Management
Mar 26, 2005
11
FR
Hello,

We have an application in several languages where each language has its own directory.

Each directory contains the same forms (.frm) and I want to know if it is possible to change or set the directory where the "open form" or "open window" instruction look at ?

This way we can easily change language at execution..

Thanks for any reply
 
From your description, I'm assuming that within the 4GL code that you are not opening a form using a full path:

Code:
OPEN FORM myform FROM "/mypath/tofrm/scrform"

Assume the code opens the form such as this:

Code:
OPEN FORM myform FROM "scrform"

To find the compiled form (scrform.frm), 4GL searches the current directory and then the directories named in the DBPATH shell variable.

Based on what language is required, set DBPATH before the 4GL program executes. For example, in a shell script, ask the user what language to use, set DBPATH appropriately, and then execute the 4GL program
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top