Solved

how to get highest number of listbox ?

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

827 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