Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Koen Piller
  Where is Koen Piller?
 Santpoort-Zuid
 Netherlands
 Koen Piller
 To: Khurram Tahir
  Where is Khurram Tahir?
 Karachi
 Pakistan
 Khurram Tahir
 Tags
Subject: RE: Set default to in Multiuser
Thread ID: 331393 Message ID: 331418 # Views: 29 # Ratings: 0
Version: Visual FoxPro 9 Category: Projects and Design
Date: Thursday, December 29, 2011 7:13:52 PM         
   


> >
> > Khurram,
> > Interesting, and how do you synchronize the (multiple) local- and server-free tables? before the DSL down ? Ater the DSL down is no big problem since you can manualy reset to server, but before how can you be sure the data is still in sync with everybody?
> >
> >
> > However if you want the server files in your application when DSL on and the local files when DSL down, I would make 2 path settings for each case.
> >
> > Set your default in both cases, so always, to the directory where the application starts, I presume the local directory which contains the exe.
> >
> > The set('path') will direct to the files in the you directed location, local or server.
> >
> > Regards,
> > Koen
>
> Using for server Set default to d:\MyFolder & from work stations using Set Default to m:\MyFolder in main.prg this will synchronize Free Tables on Server
>
> Earlier when no DSL creating network on my own Lan network setting but today using Auto settings of TCP/IP
>
> On Workstations for direction of server drive , drive letter required which is M: without that it is not possible that where it will locate Free tables
Khurram,
Sorry I dont understand. If you have both in your local drive the tables of your application and you have the same tables on your server than merely switching from local to serve does not synchronize. Syncronize means both have completely same content.
Or does mean, since I notice you are connected with wire to server that in case DSL is down you still have server connection? If that than why do you need double set?

Anyway in either case I would not swith with an other "set default" setting, switch with path and leave default as is. Provided default is not your server and provided that even on DSL down you still have server connection.

Meanwhile Pete gave you a fine ping example to check for connection. With this you can stear the path setting.
lcPath = ''
if lDSL = .t.
lcPath = m.lcPath +[D:\MyWorkingDirectory\]
lcPath = m.lcPath +[;\Someotherdirectory]
lcPath = m.lcPath +[M:\SomeDIrectoryOnServer]
else
lcPath = m.lcPath +[D:\MyWorkingDirectory\]
lcPath = m.lcPath +[;\SomeOtherDirectory\]
lcPath = m.lcPath +[;\SomeOtherDirectory2]
endif
set path to (m.lcPath)


Regards,
Koen



Coding without the use of m. is not generic and should be qualified as recreational

ENTIRE THREAD

Set default to in Multiuser Posted by Khurram Tahir @ 12/29/2011 4:53:49 PM
RE: Set default to in Multiuser Posted by tushar @ 12/29/2011 5:00:03 PM
RE: Set default to in Multiuser Posted by Khurram Tahir @ 12/29/2011 5:03:37 PM
RE: Set default to in Multiuser Posted by tushar @ 12/29/2011 5:24:30 PM
RE: Set default to in Multiuser Posted by Khurram Tahir @ 12/29/2011 5:33:44 PM
RE: Set default to in Multiuser Posted by tushar @ 12/29/2011 5:38:34 PM
RE: Set default to in Multiuser Posted by Khurram Tahir @ 12/29/2011 6:06:09 PM
RE: Set default to in Multiuser Posted by tushar @ 12/29/2011 7:42:31 PM
RE: Set default to in Multiuser Posted by Khurram Tahir @ 12/30/2011 3:49:13 AM
RE: Set default to in Multiuser Posted by tushar @ 12/30/2011 5:25:45 AM
RE: Set default to in Multiuser Posted by Koen Piller @ 12/29/2011 5:43:40 PM
RE: Set default to in Multiuser Posted by Khurram Tahir @ 12/29/2011 6:11:49 PM
RE: Set default to in Multiuser Posted by Koen Piller @ 12/29/2011 6:23:57 PM
RE: Set default to in Multiuser Posted by Khurram Tahir @ 12/29/2011 6:44:27 PM
RE: Set default to in Multiuser Posted by Koen Piller @ 12/29/2011 7:13:52 PM
RE: Set default to in Multiuser Posted by Jun Tangunan @ 12/30/2011 4:28:13 AM
RE: Set default to in Multiuser Posted by Pete Sass @ 12/29/2011 6:48:16 PM
RE: Set default to in Multiuser Posted by Khurram Tahir @ 12/29/2011 7:00:52 PM
RE: Set default to in Multiuser Posted by Pete Sass @ 12/29/2011 7:24:54 PM
RE: Set default to in Multiuser Posted by Jun Tangunan @ 12/30/2011 4:15:56 AM
RE: Set default to in Multiuser Posted by Pete Sass @ 12/29/2011 7:47:07 PM
RE: Set default to in Multiuser Posted by Khurram Tahir @ 12/30/2011 4:17:36 AM
RE: Set default to in Multiuser Posted by Gordon King @ 12/30/2011 8:24:36 AM
RE: Set default to in Multiuser Posted by Gordon King @ 12/29/2011 8:47:35 PM
RE: Set default to in Multiuser Posted by Suresh Adhikari @ 12/30/2011 12:46:27 PM