Loading ...
Sorry, an error occurred while loading the content.

19842Re: [Clip] Finding Minimum Value in Array

Expand Messages
  • Don - HtmlFixIt.com
    Nov 2, 2009
    • 0 Attachment
      Doesn't work Hugo,

      ^!SetListDelimiter ,
      ^!SetArray %Array%=3,8,329,7,10.34,4,9,6,2,5,11
      ^!SetListDelimiter ^%NL%
      ^!Info ^%Array1% ^%NL% ^%Array%

      You just got lucky :-)

      We always zero pad because I use your method to zero pad. We need a
      numeric sort I think in addition to ANSI and false_ANSI

      Hugo Paulissen wrote:
      > Hi Flo,
      > You can do this without evaluation. In the past I have used something along these lines:
      > ^!SetListDelimiter ,
      > ^!SetArray %Array%=3,8,329,1,1.25,7,10.34,4,9,6,2,5,11
      > ^!SetListDelimiter ^%NL%
      > ^!SetArray %Array%=^$StrSort("^$StrReplace(",";"^%NL%";"^%Array%";0;0)$";False;True;False)$
      > ^!Info ^%Array1% ^%NL% ^%Array%

      > Regards,
      > Hugo
    • Show all 15 messages in this topic