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!

PROBLEMS MAKING AN EXE FILE

Status
Not open for further replies.

ivoestg

Programmer
Mar 21, 2001
77
0
0
PT
i have a program and now i try to make one file EXE to try my program before make the setup the problem is that when i open the exe file it run the application and then close it.
i do that in VFP 5 and the code i have in programs is:

DEACTIVATE WINDOW "Project Manager"
SET SYSMENU OFF
set exact off
SET NEAR ON
SET ANSI OFF

SET CONFIRM on
SET DELETED ON
PUBLIC referencia
public designacao
public pesoformula
public loteproducao
PUBLIC MAQUINA
PUBLIC aviso
public podepassar
PUBLIC nivel
public nomeform
public vemde
public linhaprod
public usernome1
referecia="REFERENCIA"
loteproducao="000000"
linhaprod="Linha 1"

vemde="inicio"

set path to \\base\bases\sim\;\\base\EMPRESAS\aaa\;c:\foxtestesOPEN DATABASE \\base\ALA\simficheiros\FIL SHARED
OPEN DATABASE \\base\EMPRESAS\aaa\PHC SHARED

nivel=0
referencia="TC"
do form acessoprincipal.scx

DO CASE
CASE nivel=9
do menu9.mpr
CASE nivel =1
do menu1.mpr
OTHERWISE
quit
ENDCASE
read events


thanks...

I'm in ivoestg@yahoo.com
 
HI

After...
do form acessoprincipal.scx
read events

and then.. shift the following code.. somewhere within the form suitably.

DO CASE
CASE nivel=9
do menu9.mpr
CASE nivel =1
do menu1.mpr
OTHERWISE
quit
ENDCASE

SInce the read events is not available, the form quits and so OTHERWISE gets executed.

Hope this helps you :)
ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Is the form acessoprincipal.scx Modal and not top-level? If it isn't, then you'll go right through the form and the variable nivel will still be 0 and the CASE will do the QUIT.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top