Re: Non repeating list of names

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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!
.



Relevant Pages

  • Re: Need help with SELECT statement.
    ... How do you cast these bits to Boolean? ... in various programming ... What are called the X3J languages ... This is not the same as using flags for program control (flag ...
    (microsoft.public.sqlserver.programming)
  • Re: TextAid on the Iyo
    ... >> It's full of bits of code that either might rely on flags being returned ... >> subroutines. ... > Most code was written as flag preserving as a matter of good programming ...
    (comp.sys.acorn.apps)
  • read input from beginning at eof?
    ... I am new at awk (and programming in general) and would greatly ... I am writing a code that needs to read through ... an input file 49 times. ... Or maybe once it reaches the eof it could set ...
    (comp.lang.awk)
  • Re: read input from beginning at eof?
    ... I am new at awk (and programming in general) and would greatly ...  I am writing a code that needs to read through ... an input file 49 times. ...
    (comp.lang.awk)
  • Re: Simplest way to write a boolean expression in the SELECT clause?
    ... to discover the state of the database instead of programming with ... flags. ... You are missing one of the major differences in declarative ... versus procedural programming. ...
    (comp.databases.ms-sqlserver)