Hi Trint,
Could you explain in some more detail?
You can provide the index as a parameter in the method, if that is what
you mean
Just once sounds a bit like you don't need a loop at all, much like robkit
mentions.
You can combine the two and to
void GetItem(int i)
{
if(i < listBox2.Items.Count);
thisString[i] = (string)listBox10.Items[i];
}
On Mon, 07 Feb 2005 05:19:56 -0800, Trint Smith <(E-Mail Removed)>
wrote:
> Sorry, not what I meant...I want it to go through the incrementation
> just once until it comes back to the beginning from another call.
> Can I just put a break; at the bottom "}" and store where I was at?
> Trint
>
> .Net programmer
> (E-Mail Removed)
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
--
Happy Coding!
Morten Wennevik [C# MVP]