Lesser value from list of values? Lowest, Least?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • wildman@noclient.net

    Lesser value from list of values? Lowest, Least?

    If there a VB.NET function that would return the lesser value from a
    list of values?

    For example,

    Least(1,2,3,4,5 )

    would return 1.



  • Eliyahu Goldin

    #2
    Re: Lesser value from list of values? Lowest, Least?

    See if this helps:


    --
    Eliyahu Goldin,
    Software Developer
    Microsoft MVP [ASP.NET]




    <wildman@noclie nt.netwrote in message
    news:525194ab-5a8e-4153-93d2-f9aeec1d0c19@60 g2000hsy.google groups.com...
    If there a VB.NET function that would return the lesser value from a
    list of values?
    >
    For example,
    >
    Least(1,2,3,4,5 )
    >
    would return 1.
    >
    >
    >

    Comment

    • wildman@noclient.net

      #3
      Re: Lesser value from list of values? Lowest, Least?

      Thank you. Does anybody have a simple working example that will work
      in asp.net/vb.net codebehind code?

      Public Shared Function Min ( _
      source As IEnumerable(Of Decimal) _
      ) As Decimal

      Visual Basic (Usage)


      Dim source As IEnumerable(Of Decimal)
      Dim returnValue As Decimal

      returnValue = source.Min()

      Comment

      Working...