Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Visual Basic .NET only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
Visual Basic .NET
how to get the greatest value in array?
Collapse
This topic is closed.
X
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Eric
#1
how to get the greatest value in array?
Oct 21 '08, 08:35 PM
Hi,
i have an array like x(1), x(2) ... x(10).
Is there a simple way to get the greatest value?
Thanks
Eric
Gillard
#2
Oct 21 '08, 08:45 PM
Re: how to get the greatest value in array?
hi ,
sort it
and take the last one :D
bye
"Eric" <erl@sdsclem.po wrote in message
news:OcCDPt7MJH A.1612@TK2MSFTN GP03.phx.gbl...
Hi,
>
i have an array like x(1), x(2) ... x(10).
Is there a simple way to get the greatest value?
>
Thanks
Eric
>
Comment
Post
Cancel
=?Utf-8?B?Tmljb2xhcw==?=
#3
Oct 21 '08, 08:55 PM
RE: how to get the greatest value in array?
Can you use the SortedList which use (key,value) pair
It sort by Keys and the get either enumarator to move
Hope that help
Nicolas
"Eric" wrote:
Hi,
>
i have an array like x(1), x(2) ... x(10).
Is there a simple way to get the greatest value?
>
Thanks
Eric
>
>
>
Comment
Post
Cancel
Armin Zingler
#4
Oct 21 '08, 08:55 PM
Re: how to get the greatest value in array?
"Eric" <erl@sdsclem.po schrieb
Hi,
>
i have an array like x(1), x(2) ... x(10). Is there a simple way to
get the greatest value?
Framework 3.5:
x.Max()
Armin
Comment
Post
Cancel
Eric
#5
Oct 21 '08, 09:15 PM
Re: how to get the greatest value in array?
Thanks all
"Armin Zingler" <az.nospam@free net.deschreef in bericht
news:uli3Y57MJH A.3744@TK2MSFTN GP05.phx.gbl...
"Eric" <erl@sdsclem.po schrieb
>Hi,
>>
>i have an array like x(1), x(2) ... x(10). Is there a simple way to
>get the greatest value?
>
Framework 3.5:
>
x.Max()
>
>
Armin
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment