Hi, Both used for declaring a varibles. Dim will use only declaring the variables as private but Public we can not declare a variables and also it will make them at Global so that These variables can be used accross any action and any library function with out passing as variable
Hope, you understand it please let me know if you need anything else Thanks & Regards, Venkat Reddy Bandaru [email protected] +91.9884524606 On Sat, Apr 27, 2013 at 2:04 PM, *********************** < [email protected]> wrote: > Hi > > Can anyone explain me what is the exact difference between Public and Dim > keywords in VbScript? > Kindly explain me with an example, what is the scope if the two variables > are declared as Public and Dim? > > Thanks in Advance > Vinay > > -- > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "QTP - HP Quick Test Professional - Automated Software Testing" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en --- You received this message because you are subscribed to the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
