Results 1 to 3 of 3

Thread: Working with text files

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2007
    Posts
    5

    Working with text files

    Hello,

    First of all let me say sorry for asking such a lot here. Basically my VB skills are very rusty as I haven't had to touch it for a year or two. Now that I am getting back into it I am finding it a little difficult.

    In the source code provided, I was wondering if someone could help me add a few features I have been trying to get right. I am not asking you complete the program to the ground (well I guess pretty close), but to get the major parts done. You don't really have to code it in, just point me in the right direction.

    Here's what I want:

    cmdSearch:
    Search the text file until it finds a line with jobnum.text in it. If it does, load the line into an array, and put [0] (job number?) into job jumber text (or leave it here from search). [1] into lblposessor. [2] into lbllastupdated. [3] lblcomments.

    cmdUpdate:
    Search the text file until it finds a line with newjobnumber.text in it. Once it does, write job number, currently in posession of and comments IN THE SAME FORMAT that could be read from the 'search' button.

    If it cannot find a line with newjobnumber.text in it, it creates a new line.

    ------

    Can anyone help me out?

    Thanks guys, I know this might be a pain. Perhaps I will get back into VB
    Attached Files Attached Files

  2. #2

  3. #3
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: Working with text files

    What's more important compared to the uploaded form is sample data from the textfile so we can determine best way to parse the text...

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