Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Variable declaration
#1
Solved: 10 Years, 10 Months ago
Is variable declaration is mandatory in vb script? How to make variable mandatory in vb script?
Reply
#2
Solved: 10 Years, 10 Months ago
Variable declaration is not mandatory in QTP. But for the good practice and reduce the risk of redundancy you should declare each and every variable while scripting.

To make variable declaration mandatory you should try "Option Explicit" command at the top of the each action.
Reply
#3
Solved: 10 Years, 10 Months ago
Thank you Pranikgarg.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  String Array Declaration Bhuvana 0 1,013 01-07-2020, 12:59 PM
Last Post: Bhuvana

Forum Jump:


Users browsing this thread: 1 Guest(s)