Author: Bill Arnold
Posted: 2000-01-30 at 14:55:08
Adolph,
We've done this in the past with the Nat'l Change of Address (NCOA) system,
where we 'check out' a mailing for NCOA processing and then 'check it back
in' when we receive the results. As has been pointed out, it's basically
impossible to handle this perfectly, so some manual intervention might be
required for records that were changed in between.
The "check in" process basically reads each record of the checked out copy
of the DBF and looks to see if the record in the 'source' DBF has been
changed during the time it was "checked out", and if it was, either stop or
flag it for manual attention, otherwise overlay the original record with the
returned record (memo fields and all).
There are several ways to determine if the record was changed while it was
checked out, in our case we date/time stamp each record every time it's
changed by an operator, so we use that, but another way would be to do a
record compare (sample code below doesn't take into account memo fields,
which have to be brought into a string for the compare, but it's a start).
You might be able to automate the check in part when the record has been
changed, but it can get problematic (e.g. someone goes in and revises text
in a memo field, while someone else is doing the same on the checked out
copy).
Bill
p.s. note that this code has been upgraded to handle long folder names with
spaces <g>
* Compare current CUSTLIST record with single record in CHGCAND DBF; return
a flag if different.
select select(1)
use (z_temp)+'chgcand' alias thecand
select custlist
numflds = fcount() && get number fields in database
do while numflds > 0 && loop through every field in main
table
a = field(numflds) && get 1st/next field in main table
b = 'thecand->'+field(numflds) && get corresponding field in secondary
table
if &a <> &b && compare the two
store .t. to z_esc && mismatch, set a flag
exit && and, in this case, get out
endif
numflds = numflds - 1 && on to next field
enddo
sele thecand
use
W J Arnold Software Company
Cornwall, New York
Sales: 914 534-2725
Customer Service: 718 347-9047
"Thinking for yourself is more important than the answers you get" Socrates
> -----Original Message-----
> From: profox@leafe.com [mailto:profox@leafe.com]On Behalf Of Adolph
> Santorine
> Sent: Sunday, January 30, 2000 1:39 PM
> To: Multiple recipients of ProFox
> Subject: Re: Off topic: file sync utility
>
>
> The breifcase should work just fine for this application.
>
> Back to the Fox.... does anyone know of a synchro application where my
> users can synchro to their network database.
>
> Example: The main app is on their server. Many users are into the program.
> Their fearless leader, who has a notebook, want to grab the data, go to a
> meeting, make changes, come back, and synchro... without throwing all the
> data on the server (via Backup/restore) away.
>
> Suggestions?
>
>
> Adolph
>
>
>
>
> At 12:59 AM 1/30/00 -0800, you wrote:
> >The Briefcase?
> >
> >On 29 Jan 00, at 22:58, Lew Schwartz wrote:
> >
> >> Can anyone recommend a file synchronization utility? I'd like
> to keep my
> >> laptop in sync with my desktop. Preferably, this utility would be an
> >> explorer add-in.
> >>
> >>
> >>
> >> ----------------------------------------
> >> Subscription maintenance at:
> >> http://leafe.com/mailListMaint.html
> >>
> >>
> >
> >
> >Paul McNett Software Consulting
> >mailto:pmcnett@pm-software-consulting.com
> >
> >
> >
> >----------------------------------------
> >Subscription maintenance at:
> >http://leafe.com/mailListMaint.html
> >
> >
> >
> >
>
>
>
> ----------------------------------------
> Subscription maintenance at:
> http://leafe.com/mailListMaint.html
>
>
>