Micro Focus QTP (UFT) Forums
how to script regulare expresssion - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: how to script regulare expresssion (/Thread-how-to-script-regulare-expresssion)



how to script regulare expresssion - Jenny - 11-03-2010

Hi, i have these address blocks. when user click on postocde button, i need to script so the right button is clicked. in the 'href' filed of the button contains

javascript:crtw9165('zipCd$1', 'city$1','stCd$1','zipCd$1Dscr');

the $ filed will be different for each postcode button. ie $0, $1, $2 etc.
please see attachment for screen shots


RE: how to script regulare expresssion - Saket - 11-03-2010

try using descriptive programming.
make a counter variable and increase it before attempting the next address block.