Returning multiple values

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steve

    Returning multiple values

    If I have the following code, what do I have to change to
    make it return more than one value?

    public string Records
    {
    get { return textBoxName.Tex t; }
    //return textBoxAddress. Text;
    //return textBoxNotes.Te xt;
    }

    I can only return one value from my dialog box, but I would like
    to return a few more values.


    Thanks


    Steve


  • sloan

    #2
    Re: Returning multiple values




    public List<stringMult ipleValues
    {
    get {

    List<stringvalu es = new List<string>();
    values.Add ( textBox1Name.Te xt );
    values.Add ( textBox2Name.Te xt );
    return values;
    }
    }


    You might want to explain what you're trying to do. That looks like its
    heading down a hacky path.
    (Maybe I'm wrong..but it be good to ask either way).






    "Steve" <stevensm@ston. niwrote in message
    news:%23pgsmPNl IHA.5396@TK2MSF TNGP06.phx.gbl. ..
    If I have the following code, what do I have to change to
    make it return more than one value?
    >
    public string Records
    {
    get { return textBoxName.Tex t; }
    //return textBoxAddress. Text;
    //return textBoxNotes.Te xt;
    }
    >
    I can only return one value from my dialog box, but I would like
    to return a few more values.
    >
    >
    Thanks
    >
    >
    Steve
    >

    Comment

    Working...