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 
<[email protected]<mailto:[email protected]>> 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
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to