1 Reply Latest reply on Nov 18, 2011 11:13 PM by Willam van Weelden

    What's wrong with this script?

    rlauriston Level 1

      This opens a project in RoboHTML:

       

      var projectPath = "C:\\scratch\\test\\test.xpj";

      main();

      function main()

      {

      RoboHelp.openProject(projectPath);

      }

       

      This opens RoboHTML but not the project:

       

      var projectPath = "C:\\scratch\\test\\test.xpj";

      main();

      function main()

      {

              if(projectPath = '')

              {

                     alert("Project path is not defined. \nPlease update the 'projectPath' variable in the script.");

                     RoboHelp.quit();

              }

              RoboHelp.openProject(projectPath);

      }

       

      What's the error?