Forum Discussion

ritesh_chauhan's avatar
ritesh_chauhan
Contributor
11 years ago
Solved

How to declare public constants in Test Complete

How to declare public constants in Test Complete



We have tried as below:




Consts test_type = "testType";


  • Hi Ritesh,



    If you are using, VBScript then , You can declare Public Constant like below-



    Public CONST PI = 3.14

    Sub Test

           log.Message(PI)

    End Sub



    This may help you !

1 Reply

  • Ravik's avatar
    Ravik
    Super Contributor
    Hi Ritesh,



    If you are using, VBScript then , You can declare Public Constant like below-



    Public CONST PI = 3.14

    Sub Test

           log.Message(PI)

    End Sub



    This may help you !