Announcement

Collapse
No announcement yet.

PTree 1.1 for PBDOS

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

  • PTree 1.1 for PBDOS

    I am trying to use ptree to store a list of 3-6 byte words(alpha).
    Short words are padded with spaces. Since I don't need a data file,
    I am using the index as my data base. Using supplied sample code,
    I am able to implement the following functionality:
    CREATE - a new file and add new data.
    ADD - a word to the file.
    DELETE - a word from the file.
    FIND - a word in the file.

    Now, I am trying to implement a function to list all the words in
    the file. I use **** for the first and **** for subsequent records
    with **** to obtain the value of the key. The code is obviously
    incorrect, since it prints the same word over and over.

    Attached is my code. If you cannot accept it, let me know and I will
    email it to support.

    deleted by Administrator


    ------------------
    Thanks,
    Bob
    Regards,
    Bob

  • #2
    Without a database to test it on, it's kinda tough. Looks good
    at first glance. Have you tried "F8" line step? GREAT debugging
    tool.


    ------------------
    There are no atheists in a fox hole or the morning of a math test.
    If my flag offends you, I'll help you pack.

    Comment


    • #3
      Originally posted by Mel Bishop:
      Without a database to test it on, it's kinda tough. Looks good
      at first glance. Have you tried "F8" line step? GREAT debugging
      tool.


      Yep. F8 works great. It shows that the **** does not advance through
      the file. Since I don't know how to attach a zip file to this forum,
      here is the CREATE source code. Reusing CREATE will create/overwrite
      the current file. It will also ask you to add some entries.

      deleted by Administrator

      ------------------
      Thanks,
      Bob
      Regards,
      Bob

      Comment


      • #4
        PowerTree source code may not be posted publicly, per the terms of
        the license agreement. Please contact Tech Support with any questions.
        mailto:[email protected][email protected]ic.com</A>

        ------------------
        Tom Hanlin
        PowerBASIC Staff

        Comment


        • #5
          Answered via email to Tech Support. Thanks Bob!

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

          Comment

          Working...
          X