>
>OOPS!! that'll stop at the first case every time it's > 0. It should be:
>
> on rumpan
> case true of
> (gAntbild=1) : sprite(60).member=member getAt(gValda, 1) of castlib
> "internal"
> (gAntbild=2) : sprite(61).member=member getAt(gValda, 2) of castlib
> "internal"
> (gAntbild=3) : sprite(62).member=member getAt(gValda, 3) of castlib
> "internal"
> (gAntbild=4) : sprite(63).member=member getAt(gValda, 4) of castlib
> "internal"
> (gAntbild=5) : sprite(64).member=member getAt(gValda, 5) of castlib
> "internal"
> (gAntbild>5) : sprite(65).member=member getAt(gValda, 6) of castlib
> "internal"
> end case
> end
Or:
on rumpan
case true of
(bAntbild > 5): sprite (65).member = member getAt(gValda, 6) of
castlib "internal
(bAntbild > 4): sprite (64).member = member getAt(gValda, 6) of
castlib "internal
(bAntbild > 3): sprite (63).member = member getAt(gValda, 6) of
castlib "internal
(bAntbild > 2): sprite (62).member = member getAt(gValda, 6) of
castlib "internal
(bAntbild > 1): sprite (61).member = member getAt(gValda, 6) of
castlib "internal
end case
end
Also the original "if" sequence had a similar problem, except more severe.
Since he wasn't using else, if bAntbild is > 5, *all* of the if statements
would be executed.
Cordially,
Kerry Thompson
Learning Network
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]