At 06:29 AM 1/30/2013, Tom Frederick wrote:
We make PDFs of all reports and store them in a sub. On our network
the database is on Y:\ and the sub is Y:\PDFs\. At home, database is
on C:\RBTI\RBG96_64\Samples and the sub
C:\RBTI\RBG96_64\Samples\PDFs. I have always used (cval('CurrDir'))
to locate the correct database location and store/find the PFDs
regardless of the computer. It always works. Lately, this works
correctly in uncompiled versions, but when I compile to an .exe file
the value of CurrDir is assigned the name of the compiler directory
regardless of where the actual .exe is built. We have compiled our
system for several years with no problems. I put a screen of
variables right after CurrDir is fired and the value of CurrDir
was 'C:\RBTI\RBG96_64_Compiler' even when the .exe was built on
network Y:\ (work) or C:\ (home). A workaround with ISCOMPILED and
an IF..THEN works, but I'd rather have CurrDir adjust to the
location of the database as it always has. Any suggestions?
Tom,
A few suggestions:
01. Check the shortcut properties of your compiled application executable
Target:
Start in:
02. Check the .DAT file for compiled project
Hope that provides you with some blue's clues ...
Very Best R:egards,
Razzak.
www.rbase.com
www.facebook.com/rbase
--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]
(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body,
place any
text to search for.
================================================