Announcement

Collapse
No announcement yet.

ListBox Limit?

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

  • ListBox Limit?

    Hello everyone, i have notice about listbox object.. I have tried to browse huge files around 3000+ in at once but only 546 appeared or loaded in the listbox.. i need to browse again the files and locate which is the last loaded in the listbox..

    anyone experience? any posible way to load all files at once?

    Thanks

  • #2
    Hey Telco,
    There is no problems with Listbox Object


    If you use Status Dialogue to show user what's happening.
    As you can see from my pics every thing works
    Either post a sample project /or your code so someone can check what you have done incorrectly

    Comment


    • #3
      Hello colc, sorry i can see the image it seems it is broken.. or maybe becuase of our internet is very slow for a weeks already..
      i will share my code script.tomorrow to see what is the issue becuase it cannot load all files at once...

      Comment


      • #4
        strExtensions = "Media|*mp3;*wav;*flac;*w ma;*m4a;|"
        tMediaFiles = Dialog.FileBrowse(true, "Browse Media Files", path3, strExtensions, "", "", true, true);
        if tMediaFiles[1] ~= "CANCEL" then

        for nIndex, sFilePath in pairs(tMediaFiles) do

        sData = sFilePath;
        sText = String.SplitPath(sFilePath).Filename;
        sExt = String.SplitPath(sFilePath).Extension;
        tText = sText..sExt;
        result = ListBox.AddItem("ListBox1", sText, sFilePath);
        Label.SetText("Label13", ListBox.GetCount("ListBox1"))
        end

        end

        hello colc that is the code inside my browse button.. as i mention if i select huge files only 546 will go in listbox.. so i need to browse again and again until all files are in..

        Comment


        • #5
          Hey telco ,
          You have some problems again using variables in strExtensions.
          When you have multiple files to search for - it should be in a table and then each file type is searched and added to listbox eg if you have four file types then AMS does 4 file.finds
          So that is probably why it stops at 546
          I have done an example for you - Check code on Button and also Global, Double click in LB opens file
          I tested on my "C" drive and it found about six thousand files, all ended in ListBox
          Telco_FixLB.apz
          Cheers

          Comment


          • #6
            hi colc.. can i used this using filebrowse not folder? because i usually used file i like it more...

            thanks for your help colc..

            the other one regarding rename i still not tried it..

            Comment


            • #7
              telco OK modified for file browse please change path3 to your music directory / library etc

              Telco_FixLB2.apz

              Cheers

              Comment


              • #8
                Originally posted by colc View Post
                telco OK modified for file browse please change path3 to your music directory / library etc

                [ATTACH]n305515[/ATTACH]

                Cheers
                hi colc i think there is a bug with listbox using file browse if the file is too many it will not add all to listbox even this one you share...

                Thanks

                Comment


                • #9
                  Hi telco,
                  It looks like a problem with the file browse dialog API of windows not the ListBox Object. Been testing using different codes

                  I can put 10,000 plus random text into listbox no probs, also with folder browse loop no probs but when you select files from "filebrowser dialog"
                  it only selects 790 max.

                  If you really want a file browse so you can select files, then I could make a special dialog box for you otherwise
                  just use Folder Browse
                  Cheers

                  Comment


                  • #10
                    Originally posted by colc View Post
                    Hi telco,
                    It looks like a problem with the file browse dialog API of windows not the ListBox Object. Been testing using different codes

                    I can put 10,000 plus random text into listbox no probs, also with folder browse loop no probs but when you select files from "filebrowser dialog"
                    it only selects 790 max.

                    If you really want a file browse so you can select files, then I could make a special dialog box for you otherwise
                    just use Folder Browse
                    Cheers
                    Yeah i noticed that also.. your codes you share using FolderBrowse not problem..only in FileBrowse..
                    mine stops at 547 sometimes higher sometimes lower..

                    Thanks

                    Comment


                    • #11
                      Originally posted by colc View Post
                      Hi telco,
                      It looks like a problem with the file browse dialog API of windows not the ListBox Object. Been testing using different codes

                      I can put 10,000 plus random text into listbox no probs, also with folder browse loop no probs but when you select files from "filebrowser dialog"
                      it only selects 790 max.

                      If you really want a file browse so you can select files, then I could make a special dialog box for you otherwise
                      just use Folder Browse
                      Cheers
                      Sure if you can share that would be appreciated..

                      Thanks much..

                      Comment

                      Working...
                      X