Announcement

Collapse
No announcement yet.

How to convert a .dat file to a .dbf file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to convert a .dat file to a .dbf file



    Hello:

    I am using the Release 1.0, August 1997 guestbook.hts by Tim Traver. This
    guestbook uses a data file named guestbook.dat to store guestbook entries.

    I want to upgrade to the new Release 2.0, December 1998 guestbook.mv by Tim
    Traver & Michael Sussna, however, the new accompanying data file named
    guestbook.dbf uses a different file format. Looks like there are some
    control characters in there, whereas the old datafile was pure text.

    I want to merge my old entries form guestbook.dat into the new datafile,
    guestbook.dbf.

    Is this possible? If so, how?

    Thanks very much.

    Cheers,

    Eric

    <A HREF =/"http://www.randomdudes.com, on Yahoo/Simplenet/">http://www.randomdudes.com, on Yahoo/Simplenet</A>.


    #2
    How to convert a .dat file to a .dbf file



    Hi Eric,

    Sure it is possible. However you should get aquainted with the database
    tags in the Miva Reference Manual. I take it, the database is already
    existing. Before adding any data, just do the following "import"
    procedure:

    <MvOPEN> your database
    <MvIMPORT> your .dat file
    for every record in the .dat file,
    <MvASSIGN> all imported fields to the database fields
    <MvUPDATE> your database
    </MvIMPORT>
    <MvCLOSE> your database

    Hope this helps,

    Erich

    Eric Delore a écrit :
    >
    > Hello:
    >
    > I am using the Release 1.0, August 1997 guestbook.hts by Tim Traver. This
    > guestbook uses a data file named guestbook.dat to store guestbook entries.
    >
    > I want to upgrade to the new Release 2.0, December 1998 guestbook.mv by Tim
    > Traver & Michael Sussna, however, the new accompanying data file named
    > guestbook.dbf uses a different file format. Looks like there are some
    > control characters in there, whereas the old datafile was pure text.
    >
    > I want to merge my old entries form guestbook.dat into the new datafile,
    > guestbook.dbf.
    >
    > Is this possible? If so, how?
    >
    > Thanks very much.
    >
    > Cheers,
    >
    > Eric
    >
    > <A HREF =/"http://www.randomdudes.com, on Yahoo/Simplenet/">http://www.randomdudes.com, on Yahoo/Simplenet</A>.
    >

    Comment

    Working...
    X