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

Need help building an .exe

Status
Not open for further replies.

dduva

Programmer
Joined
May 16, 2001
Messages
38
Location
US
When I build an .exe I get an error saying file does not exist on the read events line. Can anyone help? Here's my code in my main:

set default to f:\pro50\custom\coinconnection

do form testformexecute.scx
read events
quit



Thank you in advance.
 
VFP is probaby not able to find testformexecute.scx when you are building your exe.

If testformexecute.scx is in the directory f:\pro50\custom\coinconnection, you should issue the following before you build your exe:

SET PATH TO SET('PATH') + ", f:\pro50\custom\coinconnection"

and then build your exe.

HTH,
Weedz (Wietze Veld)
My private project:Download the CrownBase source code !!
 
HI

1. If the error is while running the executable...
Probably, the data files referred in the forms DataEnvironment is not in the same directory. So you have to set path for that data tables to be made available.

2. If the error is while you are compiling...
do form testformexecute
read events
** Note I have removed the .scx. Once the comiplation is done, the executable holds what it wants and you dont specify the .extension.

3. In your main.prg, it is always advisable to set the path in the following way.
****************************************
PUBLIC gcHomeDirectory, gcDataPath

gcHomeDirectory = JUSTPATH(SYS(16,0))
SET DEFAULT TO (gcHomeDirectory)

** If DATA is the directory which holds the DATA tables
** within your default directory... then...
gcDataPath = "DATA\"
SET PATH TO SET("PATH")+";"+gcDataPath
****************************************
The above steps will be helpful when you shift the application to a different directory and then work on a later date.

Hope this is helpful.




ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK :-)
 
Thank you very much. Taking the .scx off worked.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top