What is shared variable?

Showing Answers 1 - 7 of 7 Answers

Ravi

  • Aug 23rd, 2005
 

Shared variables are Variables used to access data from Sub report to main report and vice versa in Cryatal Report

  Was this answer useful?  Yes

vikram_g32

  • Jan 4th, 2006
 

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.

  Was this answer useful?  Yes

B.K. Das

  • Feb 11th, 2006
 

shared variables can be initilazed only once in it's life time

  Was this answer useful?  Yes

GIRISH.T

  • Sep 15th, 2006
 

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.

  Was this answer useful?  Yes

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

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions