Click here to Skip to main content
15,897,704 members
Home / Discussions / C#
   

C#

 
QuestionFTP code Pin
Glau14-Feb-07 3:26
Glau14-Feb-07 3:26 
AnswerRe: FTP code Pin
sharpiesharpie14-Feb-07 4:09
sharpiesharpie14-Feb-07 4:09 
AnswerRe: FTP code Pin
Ed.Poore14-Feb-07 6:43
Ed.Poore14-Feb-07 6:43 
QuestionLooping Pin
Jim Warburton14-Feb-07 3:19
Jim Warburton14-Feb-07 3:19 
AnswerRe: Looping Pin
andyharman14-Feb-07 3:27
professionalandyharman14-Feb-07 3:27 
AnswerRe: Looping Pin
tarasp14-Feb-07 3:44
tarasp14-Feb-07 3:44 
AnswerRe: Looping Pin
tarasp14-Feb-07 3:48
tarasp14-Feb-07 3:48 
AnswerRe: Looping Pin
Luc Pattyn14-Feb-07 7:43
sitebuilderLuc Pattyn14-Feb-07 7:43 
Hi,

you have an index (i), an initialisation, a continuation test, and an increment.
That is called a for loop.

To avoid needing the index outside the for loop, do the delete inside it,
something like:

for (int i=0; i<count; i++) {
    if (some test) {
        do whatever needs to be done to item i
        break;
    }
}


There is nothing wrong with break; it is intended to be used for an early termination
of a loop, so it is a natural here.

Smile | :)


Luc Pattyn

Questionhow to get first 5 records from a dataset having 100 records Pin
romanchita14-Feb-07 2:33
romanchita14-Feb-07 2:33 
AnswerRe: how to get first 5 records from a dataset having 100 records Pin
Matglas14-Feb-07 2:41
Matglas14-Feb-07 2:41 
AnswerRe: how to get first 5 records from a dataset having 100 records Pin
ednrgc14-Feb-07 2:43
ednrgc14-Feb-07 2:43 
QuestionHow to make the text bold in richTextBox? Pin
frossie14-Feb-07 2:17
frossie14-Feb-07 2:17 
AnswerRe: How to make the text bold in richTextBox? Pin
Abisodun14-Feb-07 2:37
Abisodun14-Feb-07 2:37 
QuestionRichTextBox Problem Pin
Abisodun14-Feb-07 2:07
Abisodun14-Feb-07 2:07 
QuestionChanging the Form's and controlBox looks Pin
ThetaClear14-Feb-07 1:56
ThetaClear14-Feb-07 1:56 
AnswerRe: Changing the Form's and controlBox looks Pin
Mircea Puiu14-Feb-07 4:29
Mircea Puiu14-Feb-07 4:29 
GeneralRe: Changing the Form's and controlBox looks Pin
ThetaClear14-Feb-07 4:45
ThetaClear14-Feb-07 4:45 
GeneralRe: Changing the Form's and controlBox looks Pin
ThetaClear14-Feb-07 4:54
ThetaClear14-Feb-07 4:54 
AnswerRe: Changing the Form's and controlBox looks Pin
Martin#14-Feb-07 5:09
Martin#14-Feb-07 5:09 
GeneralRe: Changing the Form's and controlBox looks Pin
ThetaClear14-Feb-07 5:14
ThetaClear14-Feb-07 5:14 
QuestionHow to set an default button Pin
hiremath7114-Feb-07 1:55
hiremath7114-Feb-07 1:55 
AnswerRe: How to set an default button Pin
il_masacratore14-Feb-07 2:28
il_masacratore14-Feb-07 2:28 
AnswerRe: How to set an default button Pin
Martin#14-Feb-07 2:35
Martin#14-Feb-07 2:35 
GeneralRe: How to set an default button Pin
hiremath7114-Feb-07 2:47
hiremath7114-Feb-07 2:47 
GeneralRe: How to set an default button Pin
Luc Pattyn14-Feb-07 7:47
sitebuilderLuc Pattyn14-Feb-07 7:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.