Home All Groups Group Topic Archive Search About
Author
11 Mar 2006 1:28 AM
Anibal David Acosta F.
do you know how can I do something like this..

CurValue = 20; //or other value

for (int i=CurValue; i >=0; i--)
{

}

Author
11 Mar 2006 12:36 AM
Kent Boogaart
You just did it, didn't you? :)

Your code is perfectly fine except you didn't declare the type of CurValue.

HTH,
Kent

Show quoteHide quote
"Anibal David Acosta F." <a*@pla.net.py> wrote in message
news:e3eaOLKRGHA.1096@TK2MSFTNGP11.phx.gbl...
> do you know how can I do something like this..
>
> CurValue = 20; //or other value
>
> for (int i=CurValue; i >=0; i--)
> {
>
> }
>
Are all your drivers up to date? click for free checkup

Author
11 Mar 2006 1:47 AM
Anibal David Acosta F.
But when I compile I have an error that says: "Unrecheable code detected
(CS0162)"

and the error mark is under the "i--"


:(

thanks for your time

Show quoteHide quote
"Kent Boogaart" <ken***@internode.on.net> escribió en el mensaje
news:OPi2SPKRGHA.3916@TK2MSFTNGP11.phx.gbl...
> You just did it, didn't you? :)
>
> Your code is perfectly fine except you didn't declare the type of
> CurValue.
>
> HTH,
> Kent
>
> "Anibal David Acosta F." <a*@pla.net.py> wrote in message
> news:e3eaOLKRGHA.1096@TK2MSFTNGP11.phx.gbl...
>> do you know how can I do something like this..
>>
>> CurValue = 20; //or other value
>>
>> for (int i=CurValue; i >=0; i--)
>> {
>>
>> }
>>
>
>
Author
11 Mar 2006 1:49 AM
Anibal David Acosta F.
really is a warning, but I don't undestand why?
There is another way to do that?

thanks



Show quoteHide quote
"Kent Boogaart" <ken***@internode.on.net> escribió en el mensaje
news:OPi2SPKRGHA.3916@TK2MSFTNGP11.phx.gbl...
> You just did it, didn't you? :)
>
> Your code is perfectly fine except you didn't declare the type of
> CurValue.
>
> HTH,
> Kent
>
> "Anibal David Acosta F." <a*@pla.net.py> wrote in message
> news:e3eaOLKRGHA.1096@TK2MSFTNGP11.phx.gbl...
>> do you know how can I do something like this..
>>
>> CurValue = 20; //or other value
>>
>> for (int i=CurValue; i >=0; i--)
>> {
>>
>> }
>>
>
>
Author
11 Mar 2006 1:43 AM
Bill Butler
"Anibal David Acosta F." <a*@pla.net.py> wrote in message
news:uUnh5WKRGHA.5036@TK2MSFTNGP12.phx.gbl...
> really is a warning, but I don't undestand why?
> There is another way to do that?
>

Cut/Paste the actual code that is giving you the problem.

If you can, try to copy the offending piece to a small program that demonstrates the error you are
getting.

Bill

Bookmark and Share