|
-
Aug 1st, 2017, 08:42 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Counting List Item and Play Alarm for Each Item (Must be exceeded to my given limit!)
Hello friends. I have a program I'm working on today. But I want to tell you about a feature I can not do. First, I will talk about the objects in the program. In total there are 2 lists, 2 buttons and 1 checkbox. The first list, our words are listed. When the first button is clicked, the program lists the second list according to the number of words. If checkbox is checked and the second button is clicked, the program will sound an alarm for a group of words exceeding 10 words. (For example, if there are 10 birds in the second list, the bird sound plays, and if there are 10 cats in the second list, the cat sound plays.) My prototype has this error that, the second list (ie the list of which the word count number are written.) the program only sounds an alarm for the bird. If the dog is replaced instead of the cat after, the alarm does not plays because everything is sequential. (So there was no artificial intelligence, it was only imposition.) I'm adding my project with all alarm sounds and files for better understanding. (I had to delete 2 audio files. Because the size was too much. You already notice.) Please help me, thank you.
My Project File via VBForums: Attachment 150167
*Imagine my first list; (Huh! The place of the words may be mixed. No problem my program can count words.)
Bird
Bird
Bird
Bird
Bird
Bird
Bird
Bird
Bird
Cat
Cat
Cat
Cat
Cat
Cat
Cat
Cat
Cat
Cat
Cat
Dog
Dog
Dog
Dog
Dog
Dog
Dog
Dog
Dog
Dog
Dog
*Imagine my second list;
Bird - 9
Cat - 11
Dog - 10
*In short, I have 10 cats. And now alarm should play. (10 and 10 in the form of multiples. ie 10-20-30-...-250) My prototype does not play sound because in the second list Cat is not first item. Bird is first item of list.
*If you download my project firstly you should add items to list via my add buttons. After then you should calculate words. Finally you can check to checkbox and click last button.
Last edited by erenagar; Aug 1st, 2017 at 10:58 PM.
Reason: I forgot to add the Project.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|