how to identify method & properties require braces or not - 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 identify method & properties require braces or not (/Thread-how-to-identify-method-properties-require-braces-or-not) |
how to identify method & properties require braces or not - abhi_biradar2006 - 05-20-2014 Hi, I have a basic question. In most of the oop's language method signature is like below. Eg. MethodName () But, in vbscript for some method we use braces & for some we don't use. Same is the case with properties also. So, how can we remember which method & properties require braces & which are not. Is there any logic to remember. Sorry for typo mistakes. Thanks in advance. RE: how to identify method & properties require braces or not - ravi.gajul - 05-21-2014 Use braces when a method is expected to return some value and you catch it appropriately.You can ignore it otherwise. RE: how to identify method & properties require braces or not - abhi_biradar2006 - 05-22-2014 Ravi, Thanks for your reply. Got it. |