Re: Non repeating list of names
- From: "yynn@xxxxxxx" <yynn@xxxxxxx>
- Date: Sun, 05 Aug 2007 21:21:39 +0200
I probably do not need a 4 dimension array as my discriminant is the part of line from the left to the first comma.
Like in
Mary,SomeStreet,SomeCity,SomeTelephone
I just need to check that "Mary" is not repeated in the same sublist
yynn@xxxxxxx wrote:
J.Williams wrote:.
You have far too many variables acting as flags for a start. Some programming tips: use true and false instead of 1 and 0 for flags; write
Thanks a lot for your help!
Now I am trying to figure out a way to have it work if the lines in the input file contain comma-separated values like in
Name,Street,City,Telephone
Even in this case the only value that cannot be repeated within the same list is the Name (i.e. Street,City,Telephone can be repeated within the same file)
My first guess is I cannot use the Dictionary object as it is a bidimensional array (and the array i need in my example is 4 dimensional)
So I guess the program you suggested could do that if I use some function that reads the line, returns the Name portion of the line as the discriminant for repeated value and then writes the whole line to the correct sublist?
Thank you!
- References:
- Non repeating list of names
- From: yynn@xxxxxxx
- Re: Non repeating list of names
- From: yynn@xxxxxxx
- Re: Non repeating list of names
- From: J.Williams
- Re: Non repeating list of names
- From: yynn@xxxxxxx
- Non repeating list of names
- Prev by Date: Re: Non repeating list of names
- Next by Date: Re: Non repeating list of names
- Previous by thread: Re: Non repeating list of names
- Next by thread: Re: Non repeating list of names
- Index(es):
Relevant Pages
|
Loading