Getting General Run Error - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Getting General Run Error (/Thread-Getting-General-Run-Error) |
Getting General Run Error - suresh vasu - 01-05-2012 Hi, I am getting Getting "General Run Error" exception when executing below code Code: 1. For intObjectFound = 0 to Frame_ShipmentPage.Count Getting error at line 2, I have verified all the properties of defined objects everything is ok in that part. Object descrition below for your ref. ---------- Code: Set FrameDesc = description.Create Normally what are the situations we get General Run Error. Thanks in advance. Suresh. RE: Getting General Run Error - sundari_msls - 01-05-2012 Code: For intObjectFound = 0 to Frame_ShipmentPage.Count In the above loop, the array base in dex will be 0. so the maximum value should be Frame_ShipmentPage.Count-1. Code: For intObjectFound = 0 to Frame_ShipmentPage.Count-1 RE: Getting General Run Error - suresh vasu - 01-05-2012 Thanks for the reply, and it worked there but now the sameerror is coming at below line Code: Set WebElement_ActionButton = WebElement_ActionBtn(0) Pease help RE: Getting General Run Error - suresh vasu - 01-05-2012 Its working fine now, there was a problem with Frame object property. Thanks all. |