Hi, Can anyone please explain it little bit more. As per my understanding , "Dim" keyword we only used with the "Variables", whereas "Public" keyword we used with the functions only.
A declared variable (at the top most of the library file) which is not in the scope of the any function is called the global variable. Thanks, On Sat, Apr 27, 2013 at 5:09 PM, Venkat Reddy Bandaru <[email protected] > wrote: > 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. > > > -- -- 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.
