VB.NET

Moderators: seancampbell
Number of threads: 4022
Number of posts: 10035

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How to Enter Data Using InputBox in an Array?. Posted by ProWalter on 25 Jul 2012 at 12:55 PM
e.g Perhaps you enter weekly Salary and its Average.
Dim Array(5) As Decimal
Dim WeeklySal As Decimal
Dim Count,Add As Integer
Dim TotSalary As Decimal

For Count = 0 To (Array.length-1)
Array(Count) = InputBox("Enter Your Weekly Salary","Programmer's Heaven")
Next

For Add = 0 To (Array.Length-1)
TotSalary += Arraya(Add)
Next

label1.text = "Weekly Salary Average Is: R" & CStr(Cdec(TotSalary/Array.Length))
Thread Tree
ProWalter How to Enter Data Using InputBox in an Array?. on 25 Jul 2012 at 12:55 PM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.