Hi,
I have a question??
Can we create Variales in crystal reports?
with regards,
mahesh
mahe416 (BOB member since 2010-04-01)
Hi,
I have a question??
Can we create Variales in crystal reports?
with regards,
mahesh
mahe416 (BOB member since 2010-04-01)
Are you talking about Variables? if yes then in crystal we have three types of Variable like local,global and shared variable.
goirik (BOB member since 2006-11-20)
Hi,
Thanks for replying…
Yes I am talking abt variables only…
Can you plz give some explanation on this…
I am not havig much idea…
with regards,
Mahesh
mahe416 (BOB member since 2010-04-01)
Hi,
Local Veriable:
Variables with local scope, also known as local variables, are declared using either the Dim or Local keywords. For example, all the declarations in the previous section using Dim were declaring local variables. Another example:
Local x As Number 'equivalent to Dim x As Number. Local variables are restricted to a single formula and a single evaluation of that formula. This means that you cannot access the value of a local variable in one formula from a different formula.
Global Veriable:
Global variables use the same memory block to store a value throughout the main report. This value is then available to all formulas that declare the variable, except for those in subreports. Declare a global variable as in the following example:
Global y As String
Since global variables share their values throughout the main report, you cannot declare a global variable in one formula with one type and then declare a global variable with the same name in a different formula with a different type.
Shared variables:
Shared variables use the same memory block to store the value of a variable throughout the main report and all of its subreports. Thus shared variables are even more general than global variables. To use a shared variable, declare it in a formula in the main report as in the following example:
Shared x As Number
x = 1000
and declare it in a formula in the subreport.
For more details pls consult with Crystal Reports Online Help.
Regards,
Goirik
goirik (BOB member since 2006-11-20)
Hi Goirik,
Thanks for solving my prob…
I hav a another doubt… plz help me…
whether we can have loops in crystal reports while linking tables…
if so how can we solve it…
and Also i am facing a problem while creating the prompts in crystal reprts.
I have taken the database connection as business object universe.
Report creation evrything is ok in crystal reports but when i am creating a promp im not eble to see the list of values in the value field.
it will b help ful for me…
with regards,
Mahesh
mahe416 (BOB member since 2010-04-01)