Is there a command in vb that can alphebetize entries (alphebetize the rows) in a text file?
If so does anyone know how?
Cheers again!
Eve
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Printable View
Is there a command in vb that can alphebetize entries (alphebetize the rows) in a text file?
If so does anyone know how?
Cheers again!
Eve
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I never heard of a command..
I think you would have to put it into a grid maybe..
a grid in a text file?Quote:
Originally posted by RudyL
I never heard of a command..
I think you would have to put it into a grid maybe..
hm. how do you do that? :D
u want to name.. them.. Row A Row B?
i guess u cud.. read them line by line.. and ad the string A .. B and so on.. incrementing... and.. write it back.. just.. sometin that camer up to my mind..
not sure if that would work/if i understand correctly.Quote:
Originally posted by deane034
u want to name.. them.. Row A Row B?
i guess u cud.. read them line by line.. and ad the string A .. B and so on.. incrementing... and.. write it back.. just.. sometin that camer up to my mind..
THe user inputs data that is passed to a text file
then when the user presses a button each line ins alpabetized by the first letter in the line. :)
Like deane034 said..
Read each line into a row. So you would have 1 column and x amount of rows depending on how many lines you have. Do the sort then write each row to the text file.
Rudy
Wow - I think its a little too complicated for me (im abit of a beginner) - thank you for your help though xxx
Yea, not ideal but I can't think of any other way to do it. Can you tell me what exactly the purpose/situation? Maybe if I knew more I could come up with a better solution.
Rudy
Well its for creating a report.Quote:
Originally posted by RudyL
Yea, not ideal but I can't think of any other way to do it. Can you tell me what exactly the purpose/situation? Maybe if I knew more I could come up with a better solution.
Rudy
The form has 5 text boxes
the first 2 text boxes go on one line in a text file
All the 5 boxes values go on one line in another text file
The rows of the second text file are, on another form, loaded into a combo box which the user uses to select entries to go into a word file.
oh wait - i can sort the combo box :D
Thanks guys!!
There you go..
Good luck