Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple client/server imitation
Message
De
04/03/2004 18:17:13
Neil Mc Donald
Cencom Systems P/L
The Sun, Australie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00883135
Message ID:
00883309
Vues:
7
Hi,
You can use the datalocation setting in your yourapp.ini. i.e.

[DataLocation]
Database = g:\yourapp\data

Your work files should be ok, if not set the paths in config.fpw i.e.

tmpfiles = c:\yourapp
sortwork = c:\yourapp
progwork = c:\yourapp
editwork = c:\yourapp
resource=c:\yourapp\foxuser.dbf


Regards N Mc Donald


>Hi All,
>I wantto make a simple Client/Server imitation like eg.
>
>exe file(s) will copy to the clients
>data files (dbc,dbf ...) will copy to the appointed server pc
>
>i've copied both of app paths to the c:\ and d:\driver and before start.prg i am detecting the default path but i couldn't success my goal.
>
>my start_prep.prg code is like below
>
>If ! Used("pathcont")
>	Use pathcont In 0 Shared Again
>	If Empty(pathcont.datadir)
>		Messagebox("Work Dir Not Selected You Cannto Continiue Without Selection",16,"Data Path Error")
>		Do Form Form\SelectPath
>	Else
>		Select pathcont
>Set PATH to (pathcont.datadir)
>		Do Start
>	Endif
>Endif
>
>
>it works but my app still uses exe path data's
>
>PS: all of tables are using with DataEnvironment
>
>How is your suggestions about this matter ?
>
>TIA
Regards N Mc Donald
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform