where to declare variables?? - 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: where to declare variables?? (/Thread-where-to-declare-variables) |
where to declare variables?? - ACCBAJPA - 10-01-2013 guys, I am using a hybrid framework, do we need to use option explicit as the best practice in framework?? also I need to know where do we need to declare the variables, all the variables at the start of the script, or just before they are used, also for function library we need to declare the variable at the start of each function or in the beginning of the library all together? which of the following is proper. Code: Dim x,y,z |