Forum Discussion

Nandeesh's avatar
Nandeesh
Occasional Contributor
15 years ago

Query on accessing exel file...

hi...

Is it mandatory to keep the Exel file open when we access it through testcomplete...?
  • Nandeesh's avatar
    Nandeesh
    Occasional Contributor

    Hi even i am not able to use "goto" statement of VB in "Test complete" tool.



    I am trying the following code but encountering an run time error saying"Type miss match" at 4 th line . 



    pls tell me the syntax of GO TO


    sub demo



        for i=1 to 10


            if i<3 Then

                Goto xyz


            Else

                
    Log.Message(i)

            end if

        Next

     




    label: xyz


    Log.Message("Out of loop now")



    end sub



  • Hi Savitri,





    TestComplete uses the standard Microsoft VBScript engine. You can find a lot of workaround and tips on this question if you google for continue in VBScript, for example.





    Please let me know if you find an appropriate solution.





    Hi even i am not able to use "goto" statement of VB in "Test complete" tool.
    The GoTo statement is not supported by Microsoft VBScript as well.