Search:

Type: Posts; User: skr706

Page 1 of 2 1 2

Search: Search took 0.19 seconds.

  1. Re: [RESOLVED] Read Text file and make changes to text by searching a string

    Resolved
    Thanks to All for your support and guidance

    Sunil
  2. Re: [RESOLVED] Read Text file and make changes to text by searching a string

    183135
    183136
    this is the error
  3. replace string value in a text file at a specific start text "EC2"

    Hi friends
    I need your expert help once again as im unable to add a simple calculation in the same file and same codes.

    The codes are as below

    Private Sub ProcessFile(strFile As String)
    Dim...
  4. Re: [RESOLVED] Read Text file and make changes to text by searching a string

    Hi pete
    Thanks for your reply.
    String 3 valu to be replaced by value of string 4 so now string 3 and string 4 both become same as string 4. Until end of file at the EC2 only.

    +/- means that if i...
  5. Replies
    21
    Views
    4,383

    Re: Read Text file and make changes

    Hi Mr. Doogle
    I need your expert help once again as im unable to add a simple calculation in the same file and same codes.

    The codes are as below .
    Code:


    . Private Sub ProcessFile(strFile...
  6. Re: [RESOLVED] Read Text file and make changes to text by searching a string

    Hi friends
    I need your expert help once again as im unable to add a simple calculation in the same file and same codes.

    The codes are as below .

    . Private Sub ProcessFile(strFile As String)...
  7. Re: [RESOLVED] Read Text file and make changes to text by searching a string

    Hi friends
    I need your expert help once again as im unable to add a simple calculation in the same file and same codes.

    The codes are as below .

    . Private Sub ProcessFile(strFile As String)...
  8. Re: Read Text file and make changes to text by searching a string

    Hi
    Thanks very much

    Resolved
  9. Re: Read Text file and make changes to text by searching a string

    Hi
    something is still not going good.



    here pi is a value (integer) and avals(i) is a string
    i think string + integer is not a good sequence or statement, thats the reason its...
  10. Re: Read Text file and make changes to text by searching a string

    Hi
    thanks once again for your reply.
    1. I hanged the avals as string
    2.I had noticed that the input file had a string before -90.00 at few places so the code stopped incomplete
    0.000 0.000...
  11. Re: Read Text file and make changes to text by searching a string

    Hi
    Thanks for your guidance and code.
    It worked, but i made a minor change as required.


    Private Sub Command1_Click()
    Dim ec As Boolean, i As Integer
    Dim strln, repval, fn, fn2, avals() As...
  12. Re: Read Text file and make changes to text by searching a string

    Sir
    as u suggested that
    "Read in each line
    then split
    then in a loop check to see if the column value=-90"

    how /what code shall i use for read each line below string/ after string EC1...
  13. Re: Read Text file and make changes to text by searching a string

    Yes
    All the values in red are to be changed except the string EC1 in the text file.
  14. Re: Read Text file and make changes to text by searching a string

    Hi
    Changes in values are to be made in line below the string EC1.
    Now i wonder what command / code to use for selection of every string?. The code included below selects the 3rd string , as...
  15. [RESOLVED] Read Text file and make changes to text by searching a string

    Hi Friends
    I ve come up for a help in modifying the codes of existing VB6 project of reading a file and make changes in the file.

    In my previous post similar to this project you helped out me by...
  16. Replies
    3
    Views
    686

    Re: Excel formula ofFusing "if"

    Thanks
    Solved
  17. Replies
    3
    Views
    686

    Excel formula ofFusing "if"

    Hi
    I was trying to fit it 1 formula used in excel file to vb in one of my codes. Vb6
    But am unable to fulfill it . It looks very simple but am getting wrong results.

    Please help
    ...
  18. Replies
    6
    Views
    1,222

    Re: Make changes in multiple files

    Hi Sam
    Please look to the code below , i tried but i was able to select only one file, I didnt know how to code for all files.

    Code:

    Private Sub cmdUpdate_Click()
    Dim intFileIn As Integer...
  19. Replies
    6
    Views
    1,222

    Re: Make changes in multiple files

    Hi Sam
    I trieduploading the files in forum but due to some reasons i. Couldnt, so i uploaded on zippyshare.
    Can u please help me
    Im in middle ofsomething

    Sunil
  20. Replies
    6
    Views
    1,222

    Re: Make changes in multiple files

    Hi Sam
    Im not a good coder, My level u can judge as a beginner, but im doing my petty coding since long to fulfill my required and genious people like you.

    The project is attached at the link...
  21. Replies
    6
    Views
    1,222

    Make changes in multiple files

    Hi Friends
    I was working on a project for converting file text and add a value to the file
    Now i need to define a particular folder and select all files in that folder i.e. all files for changing...
  22. Replies
    0
    Views
    1,731

    Convert from C to VB6

    HI ,

    I have a code in C. and I am not at all good in C.
    I need to convert it to VB6.
    Can some one help in this regard?
    you can also PM me to skr706@gmail.com. Thanks in advance

    code...
  23. Replies
    0
    Views
    496

    How to delete the registry entry

    Hi,

    In the code enclosed (downloaded from forum) for trial maker)

    1. How to delete the "start date" entry from the registry so that the trial is reset? (sorry could'nt locate)
    2. What shall...
  24. Replies
    6
    Views
    938

    Re: help to finish the project

    Hi Doogle
    Thanks for reminding the re-initialisation.

    One more problem remaining:
    If you look at the loop of selection of line numbers i.e. the list file selection,
    While the value of...
  25. Replies
    6
    Views
    938

    Re: help to finish the project

    Dear Westconn1,

    1. AA.text is a input file as one complete file having data.
    2. I need to split the file as per the requirement (of distance calculation between the lines which I sorted it out by...
  26. Replies
    6
    Views
    938

    [RESOLVED] help to finish the project

    Hi Friends
    Enclosed is the frm and the input files

    I have added the file list.txt because I couldn’t create a loop after calculating the distance between the lines. So I calculated the distance...
  27. Replies
    9
    Views
    992

    Re: odd and even linecount of file

    Dear Sir,

    I am struck since long in my project, Could u please help out?
    My code with ur previous help is
    code:
    F6 = "C:\Sunil\" + "list" + ".Txt"
    Open F6 For Output As #6


    f = FreeFile
  28. Replies
    0
    Views
    386

    help required in assembling the code

    Dear Friends,

    I have a 2 codes
    1. to read the file and calculate the distance between the 2 lines data
    2. to read the file and arrange as required ( linecount/ odd and even format) of course...
  29. Replies
    9
    Views
    992

    Re: odd and even linecount of file

    Dear Sir,

    Thanks for your help,
    Worked out fine
    Resolved

    Best Regards
    Sunil
  30. Replies
    9
    Views
    992

    Re: odd and even linecount of file

    Dear Sir,

    Although I was trying a lot of variables to extract the values.
    for instance i tried :

    A = myarr(i) & vbTab & Right(myarr(i), 5)
    End If
    If i = UBound(myarr) - 1 Then
    ...
  31. Replies
    9
    Views
    992

    Re: odd and even linecount of file

    Dear Sir,
    Tried a lot of variables too read the value of myarr(i) and add them. ut couldnt achieve succcess.
    Could U please give some hint

    Best Regards
    Sunil
  32. Replies
    9
    Views
    992

    Re: odd and even linecount of file

    Dear Westconn1,
    Thanks
    This worked out fine.
    Only left over is to sum up the last three columns/results printed to new file. Could u please add that too.

    Best Regards
    Sunil
  33. Replies
    9
    Views
    992

    [RESOLVED] odd and even linecount of file

    Hi Friends,

    I am trying to print my file using the line count and the print the word as oddline and evenline in column

    I tried to read the file for line count by this code :

    Option Explicit...
  34. Replies
    21
    Views
    4,383

    Re: Read Text file and make changes

    Dear Doogle,
    Although this post was resolved, I thought of adding some more codes to it with your kind help.

    The code you helped works fine, Now I planned to add some more code to it for getting...
  35. Re: How to stop the time stamp not to change

    Dear
    Sometimes we have to manipulate the data to get rid of the work done successfully. Else we are heldup until we achieve the given work.
    If it is against the forum, I will not ask for
    But if...
  36. Re: How to stop the time stamp not to change

    Dear Doogle,

    I am working on a data manipulation program.
    The data file will be given to client
    but the data logged will be having a sequence of time stamp.
    After manipulating the data the file...
  37. Re: How to stop the time stamp not to change

    Dear Weeluke
    Thanks for guidance

    Could u please help out with some sample code? which can make the project more easier.
    Thanks
    @Sunil
  38. Re: How to stop the time stamp not to change

    Thanks, for the prompt reply.

    Can I have a sample code of it?

    @Sunil
  39. [RESOLVED] How to stop the time stamp not to change

    Hi,

    While reading a text file and making some changes to that file normally the time stamp changes and we get the date and time changed in the file accessed or file created properties.

    How to...
  40. Read Multiple files, process and print new file

    Dear

    I have 2 files to read
    calculate
    Print a new result file

    Requirement is :
    1. Read the "pre" file and the "post" file.
    (a) read the data line in count, Then calculate the distance ...
Results 1 to 40 of 61
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width