Forum Discussion

Pritim's avatar
Pritim
New Contributor
7 years ago
Solved

Why testcomplete is not considering USEUNIT as a comment ? Could anyone please explain this?

  • I don't understand your question.

     

    //USEUNIT is used, within TestComplete and with JScript (and other scripting languages) to indicate that the current unit should use methods from the unit indicated by //USEUNIT.  So, //USEUNIT is not EXACTLY a comment... it's a command.

2 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    I don't understand your question.

     

    //USEUNIT is used, within TestComplete and with JScript (and other scripting languages) to indicate that the current unit should use methods from the unit indicated by //USEUNIT.  So, //USEUNIT is not EXACTLY a comment... it's a command.

    • Pritim's avatar
      Pritim
      New Contributor

      Hi

      Actually I had been asked many times though we are using "//" for writing comments then why not //USEUNIT takes "//" as a comment.

      I could not able find the proper answer to this, but as you said "its a Command" I think I got my answer.

       

      Thank you so much

      Pritim