<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV><FONT face=Arial color=#0000ff size=2></FONT><FONT
face=Arial color=#0000ff size=2></FONT><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> filepro-list-bounces@lists.celestial.com
[mailto:filepro-list-bounces@lists.celestial.com] <B>On Behalf Of </B>Dave
Andersen<BR><B>Sent:</B> Monday, August 30, 2004 6:35 PM<BR><B>To:</B>
filepro-list@seaslug.org<BR><B>Subject:</B> changing key
size<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi, I’m new to filePro. We
have a customer who wants to merge 4 filePro databases together (identical
schemas). There is a problem with the key fields though, because each
database started at 1. So we want to prepend a value to the keys in each
table to make them unique. So record 10000 would become 110000 at
location 1, and at location 2 10000 would become 210000.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">It looks like the first task is to
change the schema for each table and change “5 *” to “7 *” (widen the
field).</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">At first our customer asked us to
write a script to edit the table/Key file directly. This seems like a
bad idea because the file is not plain text and I’m pretty sure we would
corrupt it.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">So I guess we have two options: 1)
figure out filePro processing or 2) export to csv, process the table with a
script, re-import.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Can you give me some ideas where
to start? I’m confused on how to make a filePro script that would cycle
through all the records.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Is the $190 filePro book worth
it?</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004>First, Yes the Developer's Reference is worth
it. However there are a number of other sources for for filePro
help. You might look at Lara Brody's site <A
href="http://www.hvcomputer.com/">http://www.hvcomputer.com/</A> and you
could check Nancy Palmquist's site <A href="http://www.vss3.com"><U><FONT
color=#0000ff size=2>http://www.vss3.com</U></FONT></A>. Both sites have
valuable information about filepro.</SPAN></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004></SPAN></SPAN> </P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004>Another place for help is th filepro chatroom <A
href="http://www.talkingcommunities.com/ivocalize.pl?server=1001&secure=John&room=The_FP_Room&pass=&/">http://www.talkingcommunities.com/ivocalize.pl?server=1001&secure=John&room=The_FP_Room&pass=&/</A></SPAN></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004></SPAN></SPAN> </P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004>This is a live place to talk with other filepro
programmers. All you need are speakers & a mike.
</SPAN></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004><FONT color=#0000ff></FONT></SPAN></SPAN> </P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004><FONT color=#0000ff><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004><FONT color=#0000ff>What version of fp are they
running.</FONT></SPAN></SPAN></FONT></SPAN></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004><FONT color=#0000ff></FONT></SPAN></SPAN> </P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004><FONT color=#0000ff>As for your problem, I would
suggest that you:</FONT></SPAN></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004><FONT
color=#0000ff> 1. Uualify on of the files,
assuming that the file is not already qualified.</FONT></SPAN></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004><FONT color=#0000ff> 2.
Add the the necessary field to all of the databases</FONT></SPAN></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004> <FONT color=#0000ff>3. Expand the
new qualified file to a value somewhat greater then the total records for the
databases.</FONT></SPAN></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004> <FONT color=#0000ff>4. Create a
process that posts each record according to which record # you
want.</FONT></SPAN></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004><FONT color=#0000ff></FONT></SPAN></SPAN> </P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004><FONT color=#0000ff>Now, before you do this, are you
using the record #'s as a lookup value? If so,
why.</FONT></SPAN></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004></SPAN></SPAN><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004><FONT color=#0000ff></FONT></SPAN></SPAN> </P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004><FONT color=#0000ff>A suggestion, since many of the
developers in the "list" are using *nix, in the future, sent you e-mails in
<FONT color=#ff0000><STRONG>plain text</STRONG></FONT>. Their e-mail
clients many time does not display this format properly and they will ignore
the posting.</FONT></SPAN></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004><FONT color=#0000ff></FONT></SPAN></SPAN> </P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004><FONT color=#0000ff>I'm one of those who does use
Outlook and can easily read this posting.</FONT></SPAN></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004><FONT size=2></FONT></SPAN></SPAN> </P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004><FONT size=2>Richard Kreiss<BR>GCC Consulting
</FONT></P></SPAN></SPAN>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004><FONT color=#0000ff></FONT></SPAN></SPAN> </P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004><FONT color=#0000ff></FONT></SPAN></SPAN> </P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004><FONT color=#0000ff></FONT></SPAN></SPAN> </P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004><FONT color=#0000ff></FONT></SPAN></SPAN> </P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=963002200-31082004><FONT
color=#0000ff></FONT> </P></SPAN></SPAN></DIV></BLOCKQUOTE></BODY></HTML>