GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  IBM  >  Technical
Go To First  |  Previous Question  |  Next Question 
 Technical  |  Question 91 of 98    Print  
What is shared variable?

  
Total Answers and Comments: 5 Last Update: August 07, 2009   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
August 23, 2005 06:23:53   #1  
Ravi        

RE: What is shared variable?
Shared variables are Variables used to access data from Sub report to main report and vice versa in Cryatal Report
 
Is this answer useful? Yes | No
January 04, 2006 23:50:13   #2  
vikram_g32 Member Since: December 2005   Contribution: 10    

RE: What is shared variable?
Shared Variables

Instead of making a variable global to all procedures it is possible to make that variable accessible only to the procedures that need it.

...
String output
ComposeHello()
Print output
...

Procedure ComposeHello()
Shared String output
output Hello
End Proc

This piece of code will output the string Hello . This is because it has been changed inside the procedure ComposeHello which gained access to it using the Shared command.

This technique makes code much neater because only the procedures that need the variables will have access to them.


 
Is this answer useful? Yes | No
February 11, 2006 06:39:28   #3  
B.K. Das        

RE: What is shared variable?
shared variables can be initilazed only once in it's life time
 
Is this answer useful? Yes | No
September 15, 2006 10:00:27   #4  
GIRISH.T        

RE: What is shared variable?

Shared variable is which is being shared or used by two or more functions and each functions will have their own copy of these shared variable.


 
Is this answer useful? Yes | No
August 06, 2009 15:25:31   #5  
Urminee Member Since: January 2009   Contribution: 9    

RE: What is shared variable?
Yes Now a day reuseability is most usefull for the programmer.

Shared variables use the same memory block to store the value of a variable throughout the main report and all of its subreports.

shared variables which are available to more than one process. Like ordinary VHDL variables their assignments take effect immediately. ...



Shares variable are use for system level modeling or OOPs.


So mainly Shared variable is which is created once and save in one block of memory and use it through out the the progect or Program.


With regard

Santosh
Lotus notes developer

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape