![]() |
Array
hi there.... how are you guys??
could somebody help to correct my code??? i have a problem for displaying arrays in the list box here is the code :
Public Class Form1and this is what it shows http://www7.0zz0.com/2008/04/23/16/147803266.jpg how can i display all of them??:icon_cheesygrin: |
Re: Array
Show all of what, currently you are displaying salery which has only been declared not even had a value assigned to it. Maybe i missed what you are asking.
Chris |
Re: Array
i want to display
:
Select Case salary |
Re: Array
The reason why you are getting a 0 and that is it, is because the only item you are adding to ur list box after the first line is the value of salary.
:
if you are looking to print out the value in wach of the survey items from 0-8 then you would need to do something like this, after you case statement. All the case statement is doing is checking the value of salary and then increment the correct item with the array survey. Not adding them to the list box. Something like this would add all of the items from survey into the listbox. :
Cheers, Chris |
Re: Array
i will try it
|
| All times are GMT -5. The time now is 4:53 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC