search in a listbox

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Ruud Jonk
    Forum Member
    • Oct 2004
    • 26

    search in a listbox

    He, I am making a little project, and now i have the problem that i want to search a listbox, an if the word i have searched for is in the listbox, it wil select that colum. Does anyone know how to do this?

    Greatz

    Ruud
  • sferguson
    Indigo Rose Customer
    • Oct 2003
    • 164

    #2
    You could use the SQLite plug-in to store your original list in a database, query that list, then return the results to the list box for display.
    -Scott F.

    Comment

    • Ruud Jonk
      Forum Member
      • Oct 2004
      • 26

      #3
      well, im kind a newby at with ams and know nothing about databeses, so i hope there is a easy way for this.

      But thanks for your reply

      Comment

      • sferguson
        Indigo Rose Customer
        • Oct 2003
        • 164

        #4
        Well, for what it's worth... AMS has sooooo many killer capabilities and tool built in that I too (generally on a weekly basis ) find myself in the newbie club with regards to some type of scripting or method for building this or that.

        While it may seem daunting at first blush, the database route might be simpler than it "sounds". But first, two questions:
        A) Can you describe your project with a bit more detail and context?
        B) Do you have the SQLite plug-in?
        -Scott F.

        Comment

        • Ruud Jonk
          Forum Member
          • Oct 2004
          • 26

          #5
          in the project, the listbox items are movie names, when you click on the movie, it opens a page with a cover of the movie as a page.
          So the function i would have is to search te movie´s in the listbox to check if a certian movie is in my list. So i know if i have that movie or not.
          I don´t have any plugins, because i just started using asm for a few weeks.

          Ruud

          Comment

          • JimS
            Indigo Rose Customer
            • May 2003
            • 1057

            #6
            Check out the ListBox.FindItem action. I think it will give you what you are after.

            Comment

            • Ruud Jonk
              Forum Member
              • Oct 2004
              • 26

              #7
              Thanks for your reply, but do you have a little sample code so that i can see how i haf to combine the code with an inputbox to put in the word i want to search for an than when i click the search button, it wil do the search and if it found anything, it will select the column in the listbox containing the words of the search

              Thanks for your help.
              Last edited by Ruud Jonk; 12-15-2004, 03:46 AM.

              Comment

              • sferguson
                Indigo Rose Customer
                • Oct 2003
                • 164

                #8
                Yep, JimS has the ticket! I'm currently knee-deep in a SQLite related project, and with a hammer in my hand - everything looks like a nail :o

                Ruud, let me see if I can post a litte sample project for you in just a bit.
                -Scott F.

                Comment

                • Corey
                  Indigo Rose Staff Alumni
                  • Aug 2002
                  • 9745

                  #9
                  I love that old saying, "when your only tool is a hammer, everything starts to look like a nail". Always been one of my faves and so very true... :yes

                  Comment

                  • sferguson
                    Indigo Rose Customer
                    • Oct 2003
                    • 164

                    #10
                    Ruud,

                    Well... I have a handy little sample project for you, but... it doesn't seem to want to upload.

                    Hey, Corey, any special tips about uploading files (zip file) along with a post? Each time I hit "Upload", the little pop-up window returns "Page cannot be displayed".
                    -Scott F.

                    Comment

                    • Corey
                      Indigo Rose Staff Alumni
                      • Aug 2002
                      • 9745

                      #11
                      Sounds like something on your end blocking pop-up windows. Works OK here, plus we haven't heard of any other reports of that. Could be your anti-virus, maybe a firewall? Couple thoughts anyhow...

                      Comment

                      • sferguson
                        Indigo Rose Customer
                        • Oct 2003
                        • 164

                        #12
                        Well, dang-nab-it! ...tried it again from another machine, and it's still nothing-doing. It's gotta be my firewall, but I'm not sure exactly what about that pop-up window's upload function would be so unique. I haven't had any problems with similar type upload scenarios before.

                        Ruud, hang in there. I don't mean to tease you, I'll still see if I can get the file posted.
                        -Scott F.

                        Comment

                        • Ruud Jonk
                          Forum Member
                          • Oct 2004
                          • 26

                          #13
                          oke thanks for trying, i have a lot of time today anyway

                          Comment

                          • sside
                            New Member
                            • Dec 2003
                            • 475

                            #14
                            Hallo Ruud,

                            Hier heb je een voorbeeld.

                            Groeten
                            Last edited by sside; 02-22-2007, 04:55 PM.

                            Comment

                            • Ruud Jonk
                              Forum Member
                              • Oct 2004
                              • 26

                              #15
                              Bedankt, dit is bijna helemaal wat ik nodig heb, het enige was dat wanneer je bijvoorbeeld een film zoals the day after tomorrow in de lijst heb staan, je de hele film naam moet intypen, hoe ik het eigenlijk wil hebben is dat wanneer je zeg maar alleen tomorrow intypt hij naar de eerste springt die dat in de zin heeft, en wanneer we after tomorrow intyp hij naar het item springt die het alle 2 in zich heeft zeg maar. Dit omdat het nogal wel eens verschilt bij sommigen hoe ze de film schrijven.

                              Zou je hier misschien ook nog de oplossing op weten?

                              Comment

                              Working...
                              X