switch - case works different on Win-Mac !?

Ken Ray kray at sonsothunder.com
Tue Jul 3 13:20:33 EDT 2007


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/



More information about the use-livecode mailing list