Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6233445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:18:05+00:00 2026-05-24T10:18:05+00:00

The following code is not entering the i for loop. I have had problems

  • 0

The following code is not entering the i for loop. I have had problems with my computer and VS2010. Is this a coding issue (I am a vb.net programmer programing c#.net) or a vb install issue?

            for(int hi = 1; hi > 10; hi++)
            {
                reply = pingsender.Send(ip, 500, buffer, options);
                avgtime += reply.RoundtripTime;
            }
            //EDIT:
            //All code except for issue taken offline due to company policy
            //sorry for any inconvience

This code is nested in four for loops (that all work) and is runnin, and is meant to put ping statistics in a list box. Sorry for the messy code, I comment and clean after I get the code working.

Thank you in advance for all of your hard work!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T10:18:06+00:00Added an answer on May 24, 2026 at 10:18 am
    for(int hi = 1; hi > 10; hi++)
    

    will never be true; fails at the first test, as 1 is not > 10.

    The middle clause is (essentially) “while” – not “until”. I suspect you need < 10 (for 9 iterations) or <= 10 (for 10 iterations).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a transparent BufferedImage created with the following code(not relevant how it is
We're seeing this exception occur in the following block of code in an ASP.NET
Having looked at this question, I have the following code: $/ = \0 answer
Why does the following code not work as I was expecting? <?php $data =
Why does the following code NOT give an error, nor any type of a
Why is the following code not working? if(EventLog.Exists(Foo)) { EventLog.Delete(Foo); } if(EventLog.Exists(Foo) == false)
The following class is not thread-safe (as proven in Proving the following code not
can anybody tell me why is the following code not working? <script type=text/javascript src=../../Scripts/jquery.js></script>
i am using python 2.5.2 . The following code not working. def findValue(self, text,
The following code does not compile: public class GenericsTest { public static void main(String[]

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.