dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: DataMiser

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    8,212

    Re: Find and Replace a column in text file

    No Columns(myarray(4)) will refer to the column whose number is in MyArray(4) so if the value in MyArray(4) is 9 then that code would refer to column(9)

    You would simple read the file as you are...
  2. Replies
    11
    Views
    8,212

    Re: Find and Replace a column in text file

    Well you would just need to use split on the first line and then check each resulting item to see if it had the word date in it and if so set a variable to the index of that column.
    You would then...
  3. Replies
    11
    Views
    8,212

    Re: Find and Replace a column in text file

    That is not a loop ???


    What does doesn't work mean? What does it do?
    How many columns are in each line of the file?

    I do not see anywhere that you are using split to pull out the columns in...
  4. Replies
    11
    Views
    8,212

    Re: Find and Replace a column in text file

    What happens when you uncomment the code for the loop that calls the function.
    Have you tried setting a break point and stepping through the code at runtime?

    Also note that STR() is a VB function...
  5. Replies
    11
    Views
    8,212

    Re: Find and Replace a column in text file

    no examples? Took me 2 seconds to find an example for readalllines http://msdn.microsoft.com/en-us/library/s2tte0y1.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1


    Imports System
    Imports...
  6. Replies
    11
    Views
    8,212

    Re: Find and Replace a column in text file

    One way would be to read the file line by line or you could use the readalllines method
    In either case once you get a line you need to use split() to split the line into its columns and then modify...
Results 1 to 6 of 6


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)