471,310 Members | 1,044 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

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.Text; }
//return textBoxAddress.Text;
//return textBoxNotes.Text;
}

I can only return one value from my dialog box, but I would like
to return a few more values.
Thanks
Steve
Apr 2 '08 #1
1 1544

public List<stringMultipleValues
{
get {

List<stringvalues = new List<string>();
values.Add ( textBox1Name.Text );
values.Add ( textBox2Name.Text );
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" <st******@ston.niwrote in message
news:%2****************@TK2MSFTNGP06.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.Text; }
//return textBoxAddress.Text;
//return textBoxNotes.Text;
}

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

Apr 2 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

20 posts views Thread by Ken Godee | last post: by
4 posts views Thread by Eli Sidwell | last post: by
7 posts views Thread by Dr John Stockton | last post: by
41 posts views Thread by Materialised | last post: by
14 posts views Thread by Fabian Steiner | last post: by
2 posts views Thread by satyanarayan sahoo | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.