Announcement

Collapse
No announcement yet.

Clarion (DOS) file formats

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

  • Amos Vryhof
    Guest replied
    First thing to do is to create Data types of all described data.

    After that, most of the data can be imported with GET...
    I am working on a Coin database which uses a simple proprietaty
    format. It simply fills in the blanks on the data type then
    plays around with the whole "record" at once.

    for example:

    TYPE recordType
    field1 AS STRING*13
    field2 AS WORD
    field3 AS BYTE
    .
    .
    .
    END TYPE

    Then the easiest way to get records is a FOR loop

    FUNCTION findRecord(dbName$, recordNum&) AS recordType

    DIM myRecord AS recordType 'Temporary record storage

    dbFree = FREEFILE 'Get a File handle
    OPEN dbName$ for BINARY as #dbFree 'I skipped check for file

    FOR n& = 1 to recordNum&
    GET dbFree, , myRecord
    NEXT
    FUNCTION=myRecord
    END FUNCTION

    I am sure you can come up with something like this once you have
    all of the data types defined Anton...hope this helps out.

    Yhe only thing that looks like it might be hard is the Unsigned
    LONG integers.....how does one tell if it is signed or unsigneed?

    Does it need to be converted to binary to see?




    ------------------
    Amos

    Leave a comment:


  • Lance Edmonds
    replied
    No, I only hunted it down for you...

    (PS: Thanks for updating your profile!)

    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>

    Leave a comment:


  • Anton Lasich
    Guest replied
    Originally posted by Lance Edmonds:
    Anton, please update your BBS profile with a working email address... your reply notifications are bouncing...

    Thanks!

    I have done! Have you looked at the text file listing dat file
    format?! Its quite complicated to say the least.

    Thanks
    Anton


    ------------------
    **** kwazulunatal.com ***

    Leave a comment:


  • Lance Edmonds
    replied
    Anton, please update your BBS profile with a working email address... your reply notifications are bouncing...

    Thanks!


    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>

    Leave a comment:


  • Lance Edmonds
    replied
    http://www.wotsit.org has it available from http://www.wotsit.org/download.asp?f=clarion

    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>

    Leave a comment:


  • Anton Lasich
    Guest started a topic Clarion (DOS) file formats

    Clarion (DOS) file formats

    Hi

    Does anyone have source or can point to a site (or somewhere) for Clarion data files that are not encrypted with an owner code or id? I need to be able to access the data like with dbf files. Has someone had experience with this...?

    thanks in advance
    Anton

    ------------------
Working...
X