473,396 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

decreasing for

do you know how can I do something like this..

CurValue = 20; //or other value

for (int i=CurValue; i >=0; i--)
{
//do something here
}

when I compile an error occur and the "underline error mark" is below the
"i--"
the error is: "Unrecheable code detected (CS0162)"

Is possible to do a decreasing for in C# ?

Mar 11 '06 #1
1 1729
Anibal David Acosta F. wrote:
do you know how can I do something like this..

CurValue = 20; //or other value

for (int i=CurValue; i >=0; i--)
{
//do something here
}

when I compile an error occur and the "underline error mark" is below the
"i--"
the error is: "Unrecheable code detected (CS0162)"

Is possible to do a decreasing for in C# ?


That code (with an int before the declaration of CurValue) compiles fine for
me with no errors or warnings in both VS.NET 2003 and 2005.
--
Tom Porterfield

Mar 11 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Osaka | last post by:
hi, If we consider the following scenerio: a school with 500 students. On average student takes courses per year, and tests per course. table of grades:...
8
by: Burgess Meredith | last post by:
I suffered through the interminal drivel, that the Dynamic Dummies, freeagent-Man, and the Boy Blunder had to say, > On Thu, 09 Oct 2003 11:57:07 +1000, Chris wrote: > >> On Thu, 09 Oct 2003...
1
by: Dirc | last post by:
Does anyone have any tips/hints for reducing the size of the XML produced? I can think of a couple: 1. Use XmlAttributeAttribute to save space 2. Used XmlIgnore for properties that are...
1
by: Al Sav | last post by:
Hi, I am trying to mimic a graph and using labels to draw bars (I know there are plenty of chart-graph controls, but I have to do it this way). When increase the height dynamically, the label...
1
by: elie khoury via .NET 247 | last post by:
hy, i just have a question, if anybody can help me i'll be very thankfull. my website is very loaded with images (120KB each page) so is was thinking if i could use a MultiThreaded method to open...
1
by: Goldy | last post by:
any ideas on doing this r welcome the code is in a aspx, IE 6 displays huge white spaces b/w roles, while FireFox shows it exactly the way i want it
2
by: =?Utf-8?B?R2VvcmR5?= | last post by:
Hello everyone, I would really appreciate if someone helped me in this matter cause I am going to lose my mind... I am using a Sony Vaio Laptop with Windows XP professional (512MB Ram, 1,7 GHz CPU...
2
by: CFAN | last post by:
Why the disk space keep on decreasing,is that due to use popen()? I have wrote a monitor program to ensure my program on working by using popen to use 'ps' command, but the disk space keep on...
0
by: wajedali | last post by:
hi......... i have problem in incresing and decreasing the component. I have a one main panel (i.e. i used as _basewindowPanel) in that again two panel in that two panel like wise.... ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.