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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

storing constants in a configuration file

Status
Not open for further replies.

bookouri

IS-IT--Management
Feb 23, 2000
1,464
0
0
US
Im developing an application in 10g forms. I want to make my forms as portable as possible. So, for example, if I have a button on a form that builds a URL that runs a report:
vc_url:='&userid='||vc_user_name||'/'||vc_user_pw||'@'||vc_user_connect;

I can use a global variable so that I dont have much trouble maintaining the form, but what Id like to do is have a myapp.cfg file or something that I can read the server_ip variable from. If I have a couple of dozen forms now, I have to modify each of them to configure the global variable if i change servers. But if I have a cfg file, I could just change the server there ONE time and not have to touch each form.

Does anybody have any suggestions for how to accomplish this kind of thing? Any suggestions would be appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top