Shorter still: switch (the platform) case “MacOS” ; put "Finder" into tReference ; break case “Win32” ; put "Explorer" into tReference ; break default ; put "Desktop" into tReference end switch
You don’t need a break after default. :-) Bob S On Jan 22, 2015, at 24:08 , René Micout <rene.mic...@numericable.com<mailto:rene.mic...@numericable.com>> wrote: 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é _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode