Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Run time syntax error
#1
Not Solved
Hi,

Does anyone know why the following piece of code is giving me a run syntax error message....the code compiles fine, but doesnt work at run time. the start of the Function is where the error occurs...
taking this piece of code out of the function works fine also


Code:
For thecounter = 2 to theEnd

Select Case vKey

               Case "PartySegment"
        call fCreateSegmentBlock ( vPartySegmentOpen, vPartySegmentClose, vRowCnt )
                
               Case "MortgageInsuranceSegment"
        call fCreateSegmentBlock ( vMortgageSegmentOpen, vMortgageSegmentClose, vRowCnt )
        
End Select

Next


Function fCreateSegmentBlock (rowStart, rowFinish, arraySize)

    ReDim vArray(arraySize)
    ....do something
    ....
    ....
          

End Function


Thanks in advance for any help,
Brian
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to send/pass UFT Run Error Dialog as output value to main driver script lravi4u 0 328 11-05-2023, 03:55 PM
Last Post: lravi4u
  How to identify an error page occurring in server in between the qtp run. aswini 1 1,639 05-04-2017, 03:52 PM
Last Post: Ankur
  QTP not recogonising object during run time Lavanya N 2 3,536 10-28-2015, 12:46 PM
Last Post: vinod123
  Writing to Run time data table Neetha 5 11,663 08-27-2015, 10:18 AM
Last Post: supputuri
  Error while opening test run results vkalyankar 3 3,986 11-12-2014, 09:49 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)