I have a VB script that checks a database for new announcements. If no records are found, I want to skip that slide and go to the next one.
I have a variable iRecords. I set it default to 0 in Scala. Then in my VB Script I set it to 1 if any records are found or 0 if not. Then on Scala, on the slide I have my WinScript attached to (same slide as the one displaying the VB Script gotten data) I set a Conditional Branch saying "iRecords=0" and then in GO TO I chose "Go to next slide".
In my mind, this should check to see if iRecords=0 - if so, jump to the next slide, if not show the current slide. I run this and the first time through, a record is found and it shows the slide but everytime thereafter - even though there is still that record in the DB - it jumps over that slide.
What am I doing wrong?
Jenn
I think the problem is that you do to much on one slide and the condition is tested before the winscript is started (and skips the slide). Try starting the vbscript at start of your program (make sure it loops with a little delay), letting it run in the background.
Not quite sure why the first time it does show a slide though. But the best rule in these cases is to spread out all functionality over a couple of special events. If you wish, send me the .sca and the vbscript so I can show you where it goes wrong (I have done a lot of vbscript communication and do think I have seen every pitfall by now...)
My mailaddress is marvin at pthgroep dot nl
Wierd - keeps screwing up which answers I am posting to which questins - sorry!
I am going to try splicing up the functionality and I will let you know if I need more direction. Thanks so much for the offer!!!!
Jenn
Any luck Jenn?
Discussions 2005 Index |
Contact Scala about your end-to-end software solutions for creating and controlling Electronic Display Networks, whether you call it Dynamic digital signage, Narrowcasting, Captive Audience Networks, Kiosks, Point-of-Purchase Displays, Digital In-Store Merchandising, Out-of-Home Media Networks, Place-based Advertising, Display Marketing, Retail Digital Media Networks, Datacasting, Electronic Billboards, The Outernet or any of the other terms in use today. Scala conducts business through a worldwide network of Value Added Resellers. For more information on what this emerging industry is coming to be named, you can see how other people found this page. ©1993-2008 Scala, Inc. Scala, InfoChannel, and the Exclamation Point Logo are registered trademarks of Scala, Inc. All other trademarks are the property of their respective organizations. To see all the content on our Website, click Sitemap or check our blog for the latest updates. Read our Privacy Policy.