How do you declare static variable and how it is declared
and what is its lifetime?
Answers were Sorted based on User's Feedback
Answer / firoz ahmed
Static variable are declared within the procedure.
and it preserves the value of variable.whether is
called 10000 times.no problem.
| Is This Answer Correct ? | 12 Yes | 3 No |
Answer / pratik
Hi,
Static variables are declare through the
Static Var1 as Integer
The scop of the Var1 is within the module where its is
defined
| Is This Answer Correct ? | 18 Yes | 20 No |
What is the difference between Namespace and Assembly?
What are the features of c# which are not present in vb.net?
what are Fixed memory leaks and threads locking problems.
How can we store decimal data in .net?
How to achieve Polymorphism in VB.Net?
what is the dif b/w panel and groupbox.
Can you please explain the difference between vb and vb.net?
code for itemstockgroupwise record?
how to send data to exe file? my code has a button when i press it, an exe file will open. how can i send data as input to the exe file?
What are the difference between structure and class?
visual basic 6.0 hava print statement for printing on form.what is the alternative for this in vb.net?
What are the objects in asp.net and tell the purpose of those objects
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)