Home
Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
C# Community
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
VB.NET
VB.NET General Discussion
Do Loop Help VB.Net
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JuggaloBrotha" data-source="post: 6005" data-attributes="member: 13"><p>basically you ask the user to input a number (store value in intUserNumber as an integer)then:</p><p></p><p>[code]</p><p>Dim blnCorrect as Boolean = False</p><p>Do</p><p> If intUserNumber < 35 and intUserNumber > 15 then</p><p> Messagebox.Show("Thank You")</p><p> blnCorrect = True</p><p> Else</p><p> Messagebox.Show("Try Again")</p><p> blnCorrect = False</p><p> 'be sure to re-prompt them for a new number otherwise this loop will never end</p><p> End If</p><p>Loop Until blnCorrect = True</p><p>[/code]</p></blockquote><p></p>
[QUOTE="JuggaloBrotha, post: 6005, member: 13"] basically you ask the user to input a number (store value in intUserNumber as an integer)then: [code] Dim blnCorrect as Boolean = False Do If intUserNumber < 35 and intUserNumber > 15 then Messagebox.Show("Thank You") blnCorrect = True Else Messagebox.Show("Try Again") blnCorrect = False 'be sure to re-prompt them for a new number otherwise this loop will never end End If Loop Until blnCorrect = True [/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Home
Forums
VB.NET
VB.NET General Discussion
Do Loop Help VB.Net
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top
Bottom