Forum Discussion

nastester's avatar
nastester
Regular Contributor
11 months ago
Solved

Using a script to add/remove variable

Looking for suggestions on the best way to handle this. I have an excel file I want to set as a ProjectSuite variable but the path to the local file will be different for different team members so I...
  • rraghvani's avatar
    11 months ago

    If for whatever reason there's a failure, it may not call DeleteVariable(). So the variable may not get deleted.

     

    If it's the same file that's being accessed by different teams. Why not just include the file within the project and use the Project.Path property

    var ExcelPath = Project.Path + "\\WorksheetName.xlsx";