TestPartner Scripts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RioDog
    New Member
    • Jul 2006
    • 4

    TestPartner Scripts

    Hi
    Is anyone familiar with vb in Testpartner? Can u please enlighten me as to how you stop a script when invalid data is entered and move to the next database record? I know the recordset.moven ext bit but I just can't get the rest!!!!!
    Thanks!!
  • sundari19
    New Member
    • Aug 2007
    • 1

    #2
    Originally posted by RioDog
    Hi
    Is anyone familiar with vb in Testpartner? Can u please enlighten me as to how you stop a script when invalid data is entered and move to the next database record? I know the recordset.moven ext bit but I just can't get the rest!!!!!
    Thanks!!

    I think u can use the "On error resume next " command

    Comment

    • hariharanmca
      Top Contributor
      • Dec 2006
      • 1977

      #3
      Originally posted by sundari19
      I think u can use the "On error resume next " command

      we should not use "On error resume next " at developing stage. Because we cannot trap the error descreptions.

      So better use

      [CODE=vb]Private Sub Method()
      On error Goto LineLable
      <Statements>
      LineLable :
      error statement msg Boxes

      end sub[/CODE]
      Last edited by hariharanmca; Aug 21 '07, 09:58 AM. Reason: Changed errod descreptions to error descreptions

      Comment

      Working...