Wrox Programmer Forums CODING TOWIC
 | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
 Visual Basic 2008 Essentials If you are new to Visual Basic programming with version 2008, this is the place to start your questions.
 Welcome to the p2p.wrox.com Forums. You are currently viewing the Visual Basic 2008 Essentials section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersâ€™ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
June 22nd, 2012, 02:10 PM
Registered User
 Points: 5, Level: 1
 Activity: 0%

Join Date: Jun 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
CODING TOWIC

Dear Sirs vThearon Willis / Bryan Newsome.

Sir I am beginner in computer programming and I am reading book Beginning Microsoft Visual Basic 2010 Wrox Publication, really i am very much enjoying your book for programming also i taken admisson in Computer Institue in Dubai but i am very confused coz, my teacher programming coding for visual basic very different from your book.

In book page 140 (Using Constant) that coding is twice is bad programming pratice. But my teached teach me coding like dat for array sorting. Really its very hard to understand me. Kidly tell me below mentioned coding is good or bad for vb programming.

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim a(10) As Integer
Dim i, n, j, k As Integer
n = InputBox("enter limit")
For i = 1 To n
a(i) = InputBox("Enter Values")
Next
For i = 1 To n
For j = i + 1 To n
If a(i) > a(j) Then
k = a(i)
a(i) = a(j)
a(j) = k
End If
Next
Next
ListBox1.Items.Clear()
For i = 1 To n
Next
End Sub
End Class
[/FONT]

Last edited by Irfan Hussain; June 22nd, 2012 at 02:18 PM.. Reason: I wanna explain in more detail.

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is Off HTML code is OffTrackbacks are Off Pingbacks are On Refbacks are Off Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Convert DAO Coding to ADO Coding udaybg1 VB How-To 0 August 9th, 2011 08:50 AM Need help with coding Gini Visual Studio 2008 2 March 6th, 2009 04:14 PM Help coding here Scoob PHP How-To 3 January 26th, 2006 11:18 AM coding mdlan PHP Databases 1 May 28th, 2005 07:40 PM can someone help me in coding this? somanchivasu Access 1 April 5th, 2004 02:41 PM

All times are GMT -4. The time now is 10:50 PM.