Scala - Digital Signage Software [Logo]
Languages: EnglishGermanPolishJapaneseNorwegianFrench
  Markets Products Partners Services Support About Us  
Scala Support Scala Celebrates 20 Years of Innovation and Leadership

Conditional Branching not working after 1st time

Thursday, 03/29/2007 -- by Jenn. Subject: Conditional Branching not working after 1st time

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

Thursday, 03/29/2007 -- by Marvin Droogsma. Subject: Problem

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

Thursday, 03/29/2007 -- by Jenn. Subject: Hmmmm

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

Monday, 04/02/2007 -- by Marvin Droogsma. Subject: Well?

Any luck Jenn?


Back: Scala IC5 Content Manager

   Discussions 2005 Index   
(Page 69 of 230)

Next: Formatting content from database/vbs?

Additional Information
Request DVD - Concepts and demo
Contact Scala Sales
Search