Solved

how to get highest number of listbox ?

Posted on 2008-10-28
1
270 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
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.

680 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