Book a Demo

Author Topic: DeleteBaseline fails in VBA script on second loop call onwards  (Read 2999 times)

loay.ellaithy

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
I have written a VBA script in Excel which calls DeleteBaseline() in a loop of baseline GUIDs.
In the first loop, calling DeleteBaseline() succeeds (with return value "True") also evidently through checking EA (baselines are decreased by one). However on successive loops,  calling DeleteBaseline() fails (with return value "False") also evidently through checking EA (baselines are the same).

After the macro completes, running the same macro again will go through the very same behavior.

Any suggestions on how to solve this issue?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: DeleteBaseline fails in VBA script on second loop call onwards
« Reply #1 on: March 09, 2018, 02:27:20 am »
Report a bug. Any EA user is also a member of Sparx' test team.

q.

loay.ellaithy

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: DeleteBaseline fails in VBA script on second loop call onwards
« Reply #2 on: March 09, 2018, 09:52:36 pm »
Thanks for the tip, I found a work around but still I will use your advice