User Profile
Collapse
-
thank u sir for ur response will do that now.... -
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....Leave a comment:
-
-
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 MemberChannelLeave a comment:
-
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...Leave a comment:
-
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
Leave a comment:
-
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....Leave a comment:
-
sir once i write the sorting array code tha entire project just hangs .why does this happen...Leave a comment:
-
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....Leave a comment:
-
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...Leave a comment:
-
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) - 1Leave a comment:
-
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...Leave a comment:
-
Hey that was really cool ,I really got the logic how to do it and thanks a ton for ur help...Leave a comment:
-
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...Leave a comment:
-
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
Leave a comment:
-
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
...Leave a comment:
-
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
...Leave a comment:
-
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....Leave a comment:
-
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... -
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 ToLeave a comment:
No activity results to display
Show More
Leave a comment: