Wrox Programmer Forums
|
Forum and Wrox.com Feedback Post your suggestions for improving the Forums or Wrox.com or questions for the staff here. "Where can I find the code for my book?"
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Forum and Wrox.com Feedback section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old July 16th, 2012, 09:22 PM
Registered User
 
Join Date: Jul 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help with Vb programming code please :)

Is this how you do a nested do while loop, because it not working the way i want it too, one the user interface Hotel 2 should appear under Hotel 1. The asterisk is supposed to increase by 1 to whichever number i put in the inputbox and it not doing so.

Code:
 Dim intNumber As Integer

        intNumber = Val(InputBox("Hotel Rating"))



        intNumber = 1
        Do While intNumber <= 6
            intNumber = intNumber + 1
            lblStars.Text = "Hotel&1" & "*"
            Me.Refresh()
        Loop
        Do While intNumber <= 6
            intNumber = intNumber + 1
            lblStars.Text = "Hotel&2" & "*" & ControlChars.NewLine
            Me.Refresh()
        Loop
      




    End Sub
End Class





Similar Threads
Thread Thread Starter Forum Replies Last Post
VB Programming jacobisaiah BOOK: Professional VB 2005 ISBN: 0-7645-7536-8 1 December 20th, 2009 01:29 AM
POS programming in VB jrhenson Visual Basic 2008 Professionals 2 August 26th, 2009 07:44 AM
Beginning web Programming using vb.net code zhengmao VB.NET 2002/2003 Basics 13 September 3rd, 2005 07:12 AM
VB xml Programming helgaana1 Beginning VB 6 2 April 10th, 2005 11:03 AM
Beginning vb 6 database programming code source Oztryker Access 1 July 20th, 2004 01:13 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.