A code style question
René Micout
rene.micout at numericable.com
Thu Jan 22 03:08:16 EST 2015
> Le 21 janv. 2015 à 18:54, Ken Ray <kray at sonsothunder.com> a écrit :
>
> easier/shorter then:
>
> switch (the platform)
> case "MacOS"
> put "Finder" into tReference
> break
> case "Win32"
> put "Explorer" into tReference
> break
> default
> put "Desktop" into tReference
> break
> end switch
Easier (clear) / shorter :
switch (the platform)
case “MacOS” ; put "Finder" into tReference ; break
case “Win32” ; put "Explorer" into tReference ; break
default ; put "Desktop" into tReference ; break
end switch
;-)
René
More information about the use-livecode
mailing list