Announcement

Collapse
No announcement yet.

WHERE TO PUT THE "SORT" COMMAND??

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • WHERE TO PUT THE "SORT" COMMAND??

    Guys, I need help, where to put the "Sort" for my LisBoxEx to work, I put it in OnShow on page 1, and in other places and it doesn't work...
    Can someone help me please?


    Click image for larger version

Name:	FOTO3.png
Views:	51
Size:	43.7 KB
ID:	310731


    Click image for larger version

Name:	FOTO2.png
Views:	49
Size:	164.3 KB
ID:	310733​​


    Attached Files

  • #2


    check line 4


    Click image for larger version

Name:	screenC.png
Views:	53
Size:	143.7 KB
ID:	310735

    Comment


    • #3
      Hello friend Herrin, yes I tried every way, including the correct way, as you see in the image I posted, it just isn't working.

      Comment


      • #4
        Imagem-VIP,
        as you see in the image I posted, it just isn't working.
        That is sorting correctly
        You require to add leading zeros to get 21-40 to top , something like this

        Code:
        if NewNumber < 10
        then
        NewNumber = "00000"..NewNumber
        elseif NewNumber < 100
        then
        NewNumber = "0000"..NewNumber
        elseif NewNumber < 1000
        then
        NewNumber = "000"..NewNumber
        elseif NewNumber < 10000
        then
        NewNumber = "00"..NewNumber
        elseif NewNumber < 100000
        then
        NewNumber = "0"..NewNumber
        else
        NewNumber = NewNumber
        end​

        Comment


        • #5
          Hello friend Colc..
          Thank you for your help, I tried to do it with your great suggestion, but there is an error with "< 10", I'm still going to try some more codes.
          As you can see in the programming, I am looking for the ".bat" files within a folder, there are several files and I would like to do the "sort", without having to rename all the files.

          Thank you very much​

          Comment


          • #6
            Imagem-VIP,
            Try this my friend

            ListBoxEx_SortBat.apz

            Comment


            • #7
              Hello friend Colc
              Thank you for your help, it worked perfectly, it helped me a lot, I will use it in other projects too.

              Thank you very much friend.​

              Comment

              Working...
              X
              😀
              🥰
              🤢
              😎
              😡
              👍
              👎