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

relative addressing

Status
Not open for further replies.

tyb

Technical User
Feb 10, 2004
137
IR
can some one plz help me that how to use the relative addressing in the forms/reports to make it possible the portability of the applications in the form of FMX/REP files.

 
I dont understand your question. FMBs and RDFs are portable, FMX and REPs are not.
 
sorry for not being able to explain it.

the point is I develop a form on to my PC at some location let say " e:\myapp\forms\frm11.fmx" now in this form
i'm calling a new form on button press
call_form('e:\myapp\forms\newfrm.fmx');

if i want this all work to be coppied to some other PC, there may be only two drives (C & D)

now my call to the form
call_form('e:\myapp\forms\newfrm.fmx'); will generate error due to the location.


wat my question is that how can i call a form without mentioning the absolute path ie 'e:\myapp\forms\newfrm.fmx'

call_form('newfrm.fmx'); as being on the same drive



 
You may set environment (registry) variables FORMSxx_PATH and REPORTSxx_PATH to list locations of your forms/reports and to be able to call them without specifying complete paths. xx stands for version, e.g. FORMS60_PATH, FORMS45_PATH etc.

Regards, Dima
 
recently i've set an environment variable named

my_path = 'e:\myapp'

and i call the forms as

call_form('%my_path%\forms\F1');
the same way i specify an icon location
as %my_path%\icons\check.ico


but the problem is that at some locations its running well but at some other it would not.
 
Your way is not portable and not supported by Oracle, and even if this doesn't disturb you, I'd still suggest you to use generic way.

Regards, Dima
 


ok dima i'll do as u say, coz in my view both are the same with a little bit difference.

many thanks for all this support from u and as well for the responses from lewisp.
 
The differnce is that your way works only occassionally (I may assume that it fails with paths containing blank spaces), environment variables are denoted differently in different OS's ($<name> on Unix), you still have to mention some name known only for you etc.

Regards, Dima
 
i think u'r right i've little knowledge of computers (newbie).

many thanks for this great help.
take care
bye
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top