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.
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.