AW: switch - case works different on Win-Mac !?

Tiemo Hollmann TB toolbook at kestner.de
Tue Jul 3 13:22:54 EDT 2007


Hi Ken,
I added the Ifs after the problem occured just for my test scenario. The
problem was there before I added the Ifs and is still there with the Ifs and
cpTest = false. Perhaps I am working completely at the wrong side of the
problem, I think I have to look for a redesign.
Thank you
Tiemo

-----Ursprüngliche Nachricht-----
Von: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] Im Auftrag von Ken Ray
Gesendet: Dienstag, 3. Juli 2007 19:21
An: How to use Revolution
Betreff: Re: switch - case works different on Win-Mac !?

On Tue, 3 Jul 2007 18:47:51 +0200, Tiemo Hollmann TB wrote:

> I am struggeling with a mysterious problem, where a mac standalone calls
> different handlers as a win standalone in a switch structure, build on Win
> with 2.8.1. I have one big switch structure on stack level to handle all
> button ups. It looks like this, nothing sophisticated:

I haven't run into this before, but I *have* run into situations where 
the "if... then..." structure without an "end if" gave me unexpected 
results (but it wasn't on a specific platform). Can you try 
restructuring your "if"s so that they go like this:

  if the cpTest of this stack is true then
    answer "Test1"
  end if

It may not help, but other than that I can't see anything that might be 
a problem with the code you posted.

Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list