Results 1 to 6 of 6

Thread: Searching problem

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2001
    Posts
    143

    Searching problem

    Ok, i'm having a bit of trouble with my search code, for my project. Basicly what it is going to do, will be going into my inventory file(which is a data file, writes to my hard drive) and find a "catalog number". On my main form, there is a Catalog entry field. The user inputs the catalong number they wish to find, then it fills int he rest of the empty fields. There is Discription, Height, width, and Quanty. Also when the search button is pressed it should disable the add button. If no such catalog number can be found, a mesg should be displayed, telling so.

    Thanks

  2. #2
    PowerPoster cafeenman's Avatar
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    2,819
    You need to give more information. What is the data file? Is it a database or something you created yourself?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2001
    Posts
    143
    nope the data file is a sequencal file.

  4. #4
    PowerPoster cafeenman's Avatar
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    2,819
    The easiest way will be to read the file into arrays and then loop through the array.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Sep 2001
    Posts
    143
    ummmmm..... I've never used that way before.

  6. #6
    PowerPoster cafeenman's Avatar
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    2,819
    Post the line of code that actually reads the file, and I can help you more.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width