platform()

Parent Previous Next

TW.platform()


returns a String one of,


"MacOSX" "Windows" "X11" "unknown"  

 

Which could be used as--  


In QTScript


   switch(TW.platform())    

     {

      case "MacOSX":

 

        // do someting Mac Specific

          break;


      case "Windows":

         

        // do someting Windows specific

          break;

     

      case  "X11":

       

        // do someting Linux specific

      break;

      case  "unknown":

       // what ever

      break;

     

      // probably no need for default: here


     } // /End. switch(TW.platform())  


Created with the Personal Edition of HelpNDoc: Full featured Help generator