What are LOCAL and GLOBAL variables?

Answer Posted / guest

Local variables lifetime ends when the Procedure ends.
Global variables lifetime begins at the start of the script
and ends at the end of the script and it can be used by any
procedure within the script. Declaring a variable by using
the keyword PRIVATE makes the variable global within the
script, but if declared using PUBLIC, then all scripts can
refer the variable.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define a filesystemobject object?

539


How will u make automatic login program in asp as u see in yahoo messanger? When any body login to their system they no need to fill userid and password. It automatically fills the userid and password.

1674


What are private assemblies and shared assemblies?

518


Is asp a scripting language?

477


What are the attributes of the tags?

500






Define garbage collection?

524


Explain the difference between inline and code behind.

489


How do I convert an aspx file to pdf?

569


Explain the difference between the value-type variables and reference-type variables?

468


how can we bind the multiplication of two drop down lists?

1838


What is asp model?

527


What is meant by cookies? Explain the main features?

560


Define a variable in asp?

506


difference between partial and public ?

1671


When did classic asp come out?

536