943,740 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 569
  • VB.NET RSS
Jul 23rd, 2008
0

Missing something

Expand Post »
I need some help here I guess I am suppossed to put this code inside a while loop. Don't have a clue this is my first scripting class.


VB.NET Syntax (Toggle Plain Text)
  1. if (x <=20 and >=25 ) then
  2. print x
  3.  
  4. Else
  5.  
  6. If (x <=40 and >=45 )
  7.  
  8. Print x
  9.  
  10. endif
Last edited by Tekmaven; Jul 24th, 2008 at 3:02 am. Reason: Code tags
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
army88m2 is offline Offline
21 posts
since Jul 2008
Jul 23rd, 2008
0

Re: Missing something

try

VB.NET Syntax (Toggle Plain Text)
  1.  
  2. 'ADD LINE
  3. FOR X = 1 to 45
  4.  
  5. if (x <=20 and >=25 ) then
  6. print x
  7.  
  8. Else
  9.  
  10. If (x <=40 and >=45 )
  11.  
  12. Print x
  13.  
  14. endif
  15.  
  16. 'ADD LINE
  17. NEXT X

Hope this helps. Next time you post, please enclose code inside
VB.NET Syntax (Toggle Plain Text)
  1. ...
tags for readability.

Bill P.
Reputation Points: 10
Solved Threads: 1
Light Poster
Bill Purkins is offline Offline
42 posts
since Jul 2008
Jul 23rd, 2008
0

Re: Missing something

My instructor said something about putting it all inside a while loop.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
army88m2 is offline Offline
21 posts
since Jul 2008
Jul 23rd, 2008
0

Re: Missing something

That'll work too.
Reputation Points: 10
Solved Threads: 1
Light Poster
Bill Purkins is offline Offline
42 posts
since Jul 2008
Jul 23rd, 2008
0

Re: Missing something

The question is how to do it. I don't know . I am really getting frustrated with this class.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
army88m2 is offline Offline
21 posts
since Jul 2008
Jul 23rd, 2008
0

Re: Missing something

Hi...
You post much thread with same question.
Your question already answered in other thread by other member with looping example.
Check This :
http://www.daniweb.com/forums/thread136096.html
Reputation Points: 1182
Solved Threads: 392
Posting Sensei
Jx_Man is offline Offline
3,138 posts
since Nov 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Tools in vb.net windows application
Next Thread in VB.NET Forum Timeline: updating a gridview row in web application





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC