Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to identify method & properties require braces or not
#1
Solved: 10 Years, 6 Months ago
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.
Reply
#2
Solved: 10 Years, 6 Months ago
Use braces when a method is expected to return some value and you catch it appropriately.You can ignore it otherwise.
Reply
#3
Solved: 10 Years, 6 Months ago
Ravi,

Thanks for your reply.

Got it.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ChildItem and ChildItemCount require objects DrasticDreamer 0 2,169 02-05-2017, 10:37 PM
Last Post: DrasticDreamer
  What is the criteria of identify the object based on Base & option filter properties Suma Parimal 2 3,144 01-28-2014, 06:35 PM
Last Post: Suma Parimal
  How to identify the properties of amenu item(not Weblist)oncethe menu tab is clicked? raval 1 2,734 10-02-2012, 09:16 PM
Last Post: jcraig26
  Require QTP 9.2 Krishna5 1 2,035 04-22-2009, 12:24 PM
Last Post: Tarik Sheth
  Which properties to use to access or identify (runtime) objects using script ??? sepgs2004 1 2,636 03-06-2009, 01:38 AM
Last Post: sepgs2004

Forum Jump:


Users browsing this thread: 1 Guest(s)