Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
where to declare variables??
#1
Not Solved
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
Function fun_abc(a,b,c)
------
End Function

OR

Function fun_abc(a,b,c)

Dim x,y,z
------
End Function
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Break up a string of text and variables csutter2002 3 3,613 03-20-2013, 06:58 AM
Last Post: basanth27
Question User-Defined Environment Variables vs. Global Variables vs. DataTable Values imzeeshan 0 3,006 11-16-2012, 01:51 AM
Last Post: imzeeshan
  Parameter values VS Environmental Variables Brian.Osborne 1 2,378 10-11-2012, 01:47 PM
Last Post: harishshenoy
  How to save the dynamic string into variables? hamzaz 3 3,449 04-18-2012, 01:58 PM
Last Post: sshukla12
  environmental variables mrajeshtnl 1 2,657 02-08-2012, 11:42 AM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 2 Guest(s)