Indigo Rose Software

Professional Software Development Tools

 
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 21
  1. #1
    Join Date
    Oct 2004
    Posts
    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

  2. #2
    Join Date
    Oct 2003
    Posts
    164
    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.

  3. #3
    Join Date
    Oct 2004
    Posts
    26
    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

  4. #4
    Join Date
    Oct 2003
    Posts
    164
    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.

  5. #5
    Join Date
    Oct 2004
    Posts
    26
    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

  6. #6
    Join Date
    May 2003
    Location
    Pendleton, Oregon
    Posts
    1,038
    Check out the ListBox.FindItem action. I think it will give you what you are after.
    Add-ons for AMS. Toolbar Buttons Galore, System Animations, the Window Construction Kit, and more.
    Visit Acme-Tek

  7. #7
    Join Date
    Oct 2004
    Posts
    26
    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 at 03:46 AM.

  8. #8
    Join Date
    Oct 2003
    Posts
    164
    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

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

  9. #9
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    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...

  10. #10
    Join Date
    Oct 2003
    Posts
    164
    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.

  11. #11
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    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...

  12. #12
    Join Date
    Oct 2003
    Posts
    164
    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.

  13. #13
    Join Date
    Oct 2004
    Posts
    26
    oke thanks for trying, i have a lot of time today anyway

  14. #14
    Join Date
    Dec 2003
    Location
    The Netherlands
    Posts
    475
    Hallo Ruud,

    Hier heb je een voorbeeld.

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

  15. #15
    Join Date
    Oct 2004
    Posts
    26
    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?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. about listbox search
    By quinquagesima in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 05-09-2008, 05:58 PM
  2. Example: Using the ListBox object
    By Ted Sullivan in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 05-07-2004, 12:24 PM
  3. PostIt with listbox search
    By Stefan_M in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 02-07-2004, 07:55 AM
  4. Replies: 2
    Last Post: 01-13-2003, 01:00 AM
  5. File Search
    By Jan Fr. Nordbakke in forum Setup Factory 5.0
    Replies: 0
    Last Post: 10-14-2001, 03:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts