o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

sorting comma delimited strings -

Ok

If I have 2 strings :

strA = "1,2,3" and strB = "3,2,1"

and I compare them they obviously wont equal eachother.

However in my logig because they both contain the same 3 numbers I want to be able to say well yes man they do equal eachother.

This would require that I sort both strings.
I have seen a number of approaches but none seem too concise.

Any Ideas ?


Thanks in Advance

 

sorting comma delimited strings -
Ok If I have 2 strings : strA = "1,2,3" and strB = "3,2,1" and I compare them they obviously wont equal eachother. However in my logig because they both contain the same 3 numbers I want to be able to say well yes man they do equal eachother. This wo


comma/tab delimited... -
I'm kind of a newbie and i was wondering if someone could post (or send me) a piece of code that takes values from a comma delimited, or even tab delimited, file and puts them in an access DB? I've never done anything like this and I have an upcoming project that requires it.


Comma Delimited Problem -
Hi guys, I got a Dataset with rows and one of the field is a Comma Delimited Fields. Is there a .Net Class w/c reads reads comma delimited features? Actually, I build a while do loop already looking for "," untill I cannot find one. Just want to know if there are s


Is there a function in MYSQL to do this -
Ok i'm using MYSQL and PHP Now i've got a field that's value is comma delimited, is there a way to have an SQL query figure out the first value in this comma delimited field? Reason being I want to search the table for all records that have the first comma delimited value being 1


ListBox's and Parsing Conversion -
Okay, here it goes... I need to take a whole listbox and save it to a file, easy enough. But the list box is Tab delimited and such to make it look pretty, problem is, I want the exported file to be comma delimited. I've figured out how to import a comma delimited file into the list b


[2005] Comma Delimited with Quotes -
I just want to import a comma delimited file into a datagridview. The catch is that the values are enclosed in " (double quotes). I know how to grab records from a comma delimited file using the split function, but how would I determine the values that are enclosed with the quotes


Javascript equiv to Join, Split -
I have a comma delimited string. I want to put in array, and then back to comma delimited string later. Can someone give me an example please? thx in advance.


comma delimited files -
How do I use a StreamReader to read comma delimited text files? simplest answer wins.


zero delimited strings -
Probably a VERY easy question, but still a problem for me. I need to call a function in a DLL that requires two zero delimited strings as input. I have tried to get it to work, but i cant get it to. So can anyone tell em hoe i should pass the parameters to this DLL or have a defi


ListBox from Comma Delim Text File -
I need to populate a Listbox from a comma delimited text file... I Also need to poulate a Listview control with a similar comma delimited text file. Any suggestions? Thanks


Best way to read comma delimited fields. -
What is the best way to read comma delimited fields into an array? I am thinking about using split function. Any other recommendation.


How to parse comma delimited string -
Hi, I can read a comma delimited file and load the data into a string one line at a time. So, I can get something like... string s; s = "12.3, 14.5, 16.7"; I can iterate through the string using s.substr and a 'for' loop...is there an equivalent to 'instr' command as


[2005] Sort Comma Delimited -
Hi I need help to find/sort out data in a RichTextbox. I've opend a file in a Richtextbox, and some lines are comma delimited. I need to copy those lines to an other Richtextbox, but only the first 12 comma delimited numbers in each line. Ex. Values: 1234, 1234, 1234,1234,1234....


Strings and Arrays & Arrays and Strings!!! -
I have an array of items (ie: Red, Blue, White, Yellow) called ColorsArray. I have a string (ie: "black, orangish red, red, purple, blue, pink") called ColorsString. How would I go about removing all the items from the ColorsArray that are contained in my comma-delimite


Making a comma delimited from a text file -
I have a text file I need to make into a comma delimited text file. In order to do this I am going to need to place commas at certain places on each line. I know how to read through the file line-by-line, I do not know how to place the commas where I need them. Such as: I will need a


Splitting a delimited string into an array -
I need to split groups of delimited strings into arrays. Is there a built-in function that will handle this? Here's what I'm doing. I don't know how many elements are in the string. The string could be: 24,35,64,12,49,46 or 24,56,98 or 19,5,402,9002,5,01,645 It all


importing delimited web files to Access -
I have a web site that is essentially a comma delimited text file. What is the best way to import this into Access 2000 using VB?


Format / modify string -
My string looks like this: Business Name, ,Address, City , ST 35950 ,(123)-123-1234, I need to put a comma between the ST and Zip Code. How can I accomplish this? I am writing this info to a comma delimited file.


Creating a comma delimited file then parsing it -
Yes it has to be put into a comma delimted file


StreamWriter -
Is there any simple way to write out variables to a text file with quotes, and have them comma delimited? Just like the write statement in VB6, using the StreamWriter object? Or do I simply have to format the strings myself to have quotes, and then put the commas in myself?


Comma Seperate Value File -
Hey guys, I aam reading from a Comma Delimited file, which I exported from a database, expect I have one problem. A few of the entries under a few different columns, have comma's in them, so occasionally this set of data will be split up in correctly. Any way for me to get around th


export table access to text file comma delimited -
Hi, Using VB, how can i export a table from MS Access to a Text file with a comma delimited on a particular location? pls help. Thanks in advance.


Export a fixed length text file to comma delimited -
Hi all Does anyone know how to exprt a fixed length text file to comma delimited text file. I know that u have to check for characters in the text file , but i wouldnt even know how to do this . Please can someone help thanks


Parse delimited file -
How can I parse a tab/comma/space/etc delimited file? I want to be able to get each peace of information between the delimiters and process it? Any ideas? Thanks!


import to access database -
I am writing a program that uses ODBC with an access data base I want to write code in vb to import and append comma delimited data to the database. I don't want to use the import wizard in access97, I want the user to click a button choose the comma delimited file and have the


strip quotations from string -
I am pulling a strings out of a comma delimited file. Some of the text contains quotations and when I pull it in its puling in the quotations which is stopping me from comparing to other data. Does anyone know a way to strip off the quotes or the first and last letter in a string? I


VB6 -- Find all differences between two strings/files (FAST). -
Just a module that I cooked up for doing string/file comparison. Pass it two strings, and it returns a comma delimited string of character positions that are unmatched in the other string. So, to get all changes (insertions and deletions) it would need to be called twice. For exampl


Editing a string -
Hi If i have a strings with a comma at the begining and a comma at the end, how can I remove both of them? Eg ,12, & ,12345, Thanking you in advance PORRASTAR


txt to MSFlexgrid to graph to MSFlexgrid -
Hi, I'm a beginner with a project in the works and am stuck on the following, any help would be much appreciated: I am importing a comma delimited TXT file using chunks, then splitting the chunks into seperate strings, filtering the strings to match a certain criteria and then du


reading comma delimited data into grid -
I have a file with comma delemited data. could someone provide an example of the easiest way to read that data in to a grid control of some type? Ive never done this before and have not been able to find a lot of help on the subject. Thanks! Garrett


Sorting or Comparing Strings -
When Sorting strings in a listbox is there an easy way to make sure that it doesnt put "10" and "100" next to each other? When ever I set sorted to true I get things like this: "10" "100" "11" I can roll my own sort if I must but


Question re: 2 Dimensional arrays -
Hi, I'm trying to implement a program that runs the following type of textfile and perform calculations. comma delimited textfile format is as follows: x1, y1 x2, y2 x3, y3 x4, y4 So I need to load this comma delimited file into a 2-dimensional array, and calculate the differ


[02/03] comma delimited txt file -
Hi gurus. Need help I need to read a comma delimited txt file and while I read line by line I would like to transfer the info to a sql table. the file format is as follow 03/01/2007," 599549","06530999","AJ FREAS",61143,03/14/2007,1.19 03/01/


FSO vs I/O statements -
Greetings, I am doing some modifications to a program that used the "write #" to generate comma delimited text files. Currently, I am considering re-writing the codes to use the FileSystemObject object. I read somewhere on MSDN that the File I/O statements "will e


Sorting an array of strings in asm -
Does anyone know how to sort an array of strings in asm? I have an array of 10 strings the strings can range any where from 0 to 20 char long. For example the array may contain: one two three four five six seven eight nine ten and that needs to be sorted. Can someone ple


Parsing Comma Delimited Strings -
I have to parse a large text file into a database (MSAccess) that has embedded commas in one or more of the fields. I have written about six different functions but they bomb out if the occurence is in more than one field. Any suggestions?? sample line of textfile text: "AAW&q


reading Comma delimited file strings inbetween commas -
I have a comma delimited file containing a string new parameter1, new parameter 2, new parameter 3 I want to read the string inbetween the commas. In VB 6 the following code worked fine. Code: Public Sub fileread() 'Read parameters from PrintFile w/debug print mpicke


xls to csv -
Is there a quick way from VB6 to take a .xls(Excel) to a .csv(Comma Delimited File)? Thanks in advance, GENE


count delimited values in string *RESOLVED* -
Hey all, I am trying to get the contents of a string from mscomm1 and split it up into 15 seperate variables ( one for each comma seperated value) The problem is it will not always be 15 values, it will sometimes be 10 or 11 or even 2 seperate values , comma delimited. I have


splitting csv file w/commas in the field -
I have a comma delimited file with fields that have commas. I don't know how to get the split function form splitting when a field has a comma in it. I tried to put quotes around string values but the split function still splits into an element in an array. my code strInput="