sharedscripts
Rob Meijer
robmeyer at hetnet.nl
Fri Feb 25 00:37:16 EST 2005
Mark
It's all new for me, so what is the difference?
I took the routine the closest to OpenScript.
I agree the switch structure looks very good.
Rob
----------
At 03:24 25/2/2005, Mark Wieder wrote:
>Rob-
>
>Thursday, February 24, 2005, 1:38:29 PM, you wrote:
>
>RM> global scriptflag
>RM> on mouseUp
>RM> if scriptflag="gocard" then
>RM> send gocard
>RM> else if scriptflag=.....
>RM> send...
>RM> else if scriptflag=.....
>RM> send...
>RM> end if
>RM> end mouseUp
>
>If you're going this route, check out the switch statement.
>Er... and the break statement.
>
>on mouseUp
> switch scriptflag
> case "gocard"
> send gocard
> break
> case "something else"
> DoSomethingElse
> break
> default
> put "should never get here" into errorLog
> break
> end switch
>end mouseUp
>
>--
>-Mark Wieder
> mwieder at ahsoftware.net
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution
robmeyer at hetnet.nl
www.japrosoft.com
no more spam: Mailwasher Pro
http://www.firetrust.com/products/pro/
and please mention my emailaddress...
More information about the use-livecode
mailing list