Solved

how to get highest number of listbox ?

Posted on 2008-10-28
1
266 Views
Last Modified: 2012-05-05
I have a listbox and i have numbers added into it (only numbers) ... how can i determine highest number in that list containing numbers?
0
Comment
Question by:BILAL69
1 Comment
 
LVL 2

Accepted Solution

by:
Adel87 earned 500 total points
ID: 22820848
Hi,

The attached code should do the trick.

Please reply if you need further assistance.

Regards,
Dim max As Double

For x = 0 To List1.ListCount - 1

If List1.List(x) > max Then

max = List1.List(x)

End If

Next

MsgBox "The highist number is : " & max

Open in new window

0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How To Loop - Python 19 67
groovy example issue 10 70
How does CurrentUser work? 10 26
Hide vba in gp 7 48
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now