User Profile

Collapse

Profile Sidebar

Collapse
Ronin
Ronin
Last Activity: Sep 12 '07, 07:01 AM
Joined: Feb 20 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Ronin
    replied to text file operations with vb6.0
    thank u sir for ur response will do that now....
    See more | Go to post

    Leave a comment:


  • Ronin
    replied to text file operations with vb6.0
    sir one thing i would like to mention here is that my inputfile that is the textfile
    10117055.txt was already sorted,then why do we require a sorting code....
    See more | Go to post

    Leave a comment:


  • Ronin
    replied to text file operations with vb6.0
    sir the first one is correct the count is 34...
    See more | Go to post

    Leave a comment:


  • Ronin
    replied to text file operations with vb6.0
    Thank you sir for ur time and patience that u put into my project.
    sir it is working fine.

    Now sir I have another version of this code which produces some what different results for unique channelcount.si r i m sending u the code if u have a look at it it would be wonderful sir.

    Code:
    Private Sub Command1_Click()
        Dim MemberId As String
        Dim Channel As String
        Dim MemberChannel
    ...
    See more | Go to post

    Leave a comment:


  • Ronin
    replied to text file operations with vb6.0
    Here is the output tht it creates
    0101100100 5
    0101100100 5
    0101100100 5
    0101100100 5
    0101100100 5
    0101100100 5
    0101100100 5
    0101100100 5
    0101100100 5
    0101100100 5
    0101100100 5
    0101100100 5
    0101100100 5
    0101100100 5
    0101100100 5
    0101100100 5
    0101100100 5
    0101100100 5
    0101100100 5
    0101100100 5
    0101100100...
    See more | Go to post

    Leave a comment:


  • Ronin
    replied to text file operations with vb6.0
    and sir I m sending the entire code again in the way i m doing it,hope it helps

    Code:
    Option Explicit
    Dim fsys As New FileSystemObject
    Dim txtstream As TextStream
    Dim outstream As TextStream
    
    
    
    Public Sub cmdclick_Click()
     Dim j As Integer
     Dim searchline As String
     Dim filename As String
     Dim homeid As String
     Dim prevhomeid As String
    ...
    See more | Go to post

    Leave a comment:


  • Ronin
    replied to text file operations with vb6.0
    sir is it possible that i can send u a sample text file so that u can get a clear
    picture of what i m talkin about.in this way u will have the sample txtfile to test or else sir if u want i can send the entire project.and yes sir i tried to do that
    but was very unsucessful....
    See more | Go to post

    Leave a comment:


  • Ronin
    replied to text file operations with vb6.0
    sir once i write the sorting array code tha entire project just hangs .why does this happen...
    See more | Go to post

    Leave a comment:


  • Ronin
    replied to text file operations with vb6.0
    i mean that the text file has only around 9000 lines of data and the output txtfile that is generated is over 1lakh lines of data. i mean homeid keeps on repeating and repeating....
    See more | Go to post

    Leave a comment:


  • Ronin
    replied to text file operations with vb6.0
    Oh no problem sir, One thing i would like to mention u about your code is that
    it gives the results but suppose if my textfiles contains 98873 lines of data.
    the output file has around over 2 lakhs lines of data. and the output file
    keeps on repeating the homeid again and again ,from this i mean that
    suppose homeid 0007100200 has watched 1 unique channels
    this is repeated quite a number of times,why is this h...
    See more | Go to post

    Leave a comment:


  • Ronin
    replied to text file operations with vb6.0
    Thanks for your prompt response sir

    Although it was very helpful i did not have the desired results.

    now according to u i have to sort the array in step 2 here is how i am doing it using bubble sort ,but it is giving me an error.


    Step 2 to sort array

    Code:
    'sorting of array
                               For i = LBound(channelarray) To UBound(channelarray) - 1
    ...
    See more | Go to post

    Leave a comment:


  • Ronin
    replied to text file operations with vb6.0
    mistake




    Hello sir,
    I am writing it again,but as you have said i did the same thing,but my mam told

    me that the logic is wrong and u need to check the logic.

    so sir i m giving the code again and if u can modify the code it will be very helpful.

    now as per my description we need to have the count of Unique channel that are being watched by different homeid...
    See more | Go to post
    Last edited by Ronin; Mar 26 '07, 12:05 PM. Reason: mistake

    Leave a comment:


  • Ronin
    replied to text file operations with vb6.0
    Hey that was really cool ,I really got the logic how to do it and thanks a ton for ur help...
    See more | Go to post

    Leave a comment:


  • Ronin
    replied to text file operations with vb6.0
    textfile operations





    thnks for the reply,now let me thnk once again I have a textfile which has some homeids and channelname .
    like
    010110010001DD8 507310050731000 1
    010110010001DD8 507310050731000 1
    010110010001ENA D 507300050730000 1
    010110010001ETV 2 507320050733000 1
    010110010001ETV 2 507360050736000 1
    010110010001ETV 2 507370050808000 1
    010110010003ETV 2...
    See more | Go to post
    Last edited by Ronin; Mar 16 '07, 08:33 AM. Reason: mistake

    Leave a comment:


  • Ronin
    replied to text file operations with vb6.0
    have a look at this if this is the right way.

    Code:
    Option Explicit
    Dim fsys As New FileSystemObject
    Dim txtstream As TextStream
    Dim outstream As TextStream
    
    
    Private Sub cmdclick_Click()
     Dim j As Integer
     Dim searchline As String
     Dim filename As String
     Dim homeid As String
     Dim prevhomeid As String
     Dim channelname As String
     Dim
    ...
    See more | Go to post

    Leave a comment:


  • Ronin
    replied to text file operations with vb6.0
    sir I m trying to implement arrays in my code but i am unable to do so,pls help me.here is the sample code that i m trying to do

    [code]
    Private Sub cmdclick_Click( )
    Dim j As Integer
    Dim searchline As String
    Dim filename As String
    Dim homeid As String
    Dim prevhomeid As String
    Dim channelname As String
    Dim prevchannelname As String
    Dim channelcount As Integer
    ...
    See more | Go to post

    Leave a comment:


  • Ronin
    replied to text file operations with vb6.0
    Sir, It seems I am not able to clearly define what i actually want. so let me try it once again

    Sir ,I have textfile which have name like "10117051.s wd" now this is a file which contains data of television audio Ratings.

    The data in this file have systematic pattern so that i can identify it.

    for example take a look at this line

    010110010001ADI TY1114700111470 001

    ...
    See more | Go to post

    Leave a comment:


  • Ronin
    replied to text file operations with vb6.0
    Sir,you are right that i should use an array ,but my problem is that i do not know how to put the homeid value in arrays and compare them,basically i know what are arrays but ,how they store data or manipulate data, i have very little knowledge,perha ps any help on this would be very useful for me.
    Right know i am goind through a topic on arrays and lets see if i am able to do this.Thank you sir for your help....
    See more | Go to post

    Leave a comment:


  • Ronin
    started a topic text file operations with vb6.0

    text file operations with vb6.0

    Hello guys,

    I have a little bit of problem with textfile operations.I would like to some help from you smart people in the forum.

    I have a textfile by the name of 10117053.swd. This file contains a certain data in specific format like

    010110010001ADI TY3104200310450 001
    010110010001ADI TY3104600310460 001
    010110010001ADI TY3104800310490 001
    010110010001DD8 320200032020000 1
    010110010001ENA D...
    See more | Go to post

  • no probs a little bit of thinking and i got the code done.here is a sample piece of my code

    *** it is just a part of my code that selects all the 7 files and write that into the master file*********** **********
    Code:
    For j = 0 To lstmarket.ListCount - 1
        If lstmarket.Selected(j) = True Then
            Set outstream = fsys.OpenTextFile("c:\masterfile.txt", ForWriting, True)
                 For iday = 1 To
    ...
    See more | Go to post
    Last edited by Killer42; Mar 3 '07, 11:31 PM. Reason: Please use CODE tags around your code.

    Leave a comment:

No activity results to display
Show More
Working...