Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yousfi Benameur
  Where is Yousfi Benameur?
 El Bayadh
 Algeria
 Yousfi Benameur
 To: Joseph G. Njoroge
  Where is Joseph G. Njoroge?
 Nairobi
 Kenya
 Joseph G. Njoroge
 Tags
Subject: RE: Foxuser.dbf
Thread ID: 189150 Message ID: 189182 # Views: 1 # Ratings: 0
Version: Visual FoxPro 8 Category: Distribution and InstallShield
Date: Wednesday, August 13, 2008 5:05:20 PM         
   


> Dear Experts,
> I have a system which i have build into .exe file. On my computer the system is doing okay. When i install the application on the server. Assign full rights, then map the drive, it does not run. It starts looking for .dbf file which i suspect to be foxuser.dbf.
> I have added config.fpw in my application and the contects are as follows
>
SCREEN = OFF
> TALK = OFF
> MULTILOCKS = ON
> EXCLUSIVE = OFF
> SAFETY = OFF
> MVCOUNT=5120
> RESOURCE=OFF
> SORTWORK=C:\SSLERP\TEMP
> PROGWORK=C:\SSLERP\TEMP

>
> please someone assist me on how to solve this problem.
>
> Best Regards,
>
> Joseph Njoroge
> Charity Begins At Home


Hi Joesph
1-It is well if you put all the configuration commands in a "config.fpw" separatly because even if you put "_screen.visible=.f." in your main programm it flashes
and does a bad effect (fraction of second).
2-As you write your configuration commands "SCREEN=OFF..." that is not available in a PRG but in config.FPW and dont work.You must set that in a PRG with command "SET.."

So,otherwise:
This a classic code to put in main programm of the project.Note the programm know the starting path himself anywhere.
on shutdown quit
_screen.visible=.f.
Public PathStart

cCurrentProcedure = Sys(16,1)
nPathStart = At(":",cCurrentProcedure)- 1
nLenOfPath = Rat("\", cCurrentProcedure) - (nPathStart)
Set Default To(Substr(cCurrentProcedure, nPathStart, nLenOfPath))
PathStart= Substr(cCurrentProcedure, nPathStart, nLenOfPath)
************
SET SYSMENU OFF
* SET PATH TO SYS(5)+'\sslerp'
* TALK = OFF
 *MULTILOCKS = ON
 *EXCLUSIVE = OFF
 *SAFETY = OFF
 *DELETED=ON
 *MVCOUNT=5120
 *RESOURCE=OFF
 *TEMPFILES=c:\sslerp\temp
** DEACTIVATE WINDOW "Project manager" ALL 

 DO FORM addbs(PathStart)+'\sslerp\forms\login.scx'
 READ EVENTS

Regards
Yousfi Benameur

ENTIRE THREAD

Foxuser.dbf Posted by Joseph G. Njoroge @ 8/13/2008 2:38:49 PM
RE: Foxuser.dbf Posted by Mike Gagnon @ 8/13/2008 3:13:40 PM
RE: Foxuser.dbf Posted by Joseph G. Njoroge @ 8/13/2008 3:20:40 PM
RE: Foxuser.dbf Posted by Stefan Wuebbe @ 8/13/2008 3:52:37 PM
RE: Foxuser.dbf Posted by Yousfi Benameur @ 8/13/2008 5:05:20 PM