08-24-2007 5:29 AM
Hi
<b>start-of-selection.
a=1
start-of-selection.
b=2
end-of-selection
c=4
end-of-selection.</b>
d=5
what happens in this sitvation
08-24-2007 5:32 AM
Hi Naresh,
Welcome to SDN.....
You can have more than one START-OF-SELECTION in your report. The execution will start from top-to-bottom of START-OF-SELECTIONs occurrence in the report.
In your case it is assigning values to the variables, so it will execute from top-to-bottom as a=1 then b=2 and then c=4 and then d=5.
Thanks,
Vinay
08-24-2007 5:32 AM
Hi Naresh,
Welcome to SDN.....
You can have more than one START-OF-SELECTION in your report. The execution will start from top-to-bottom of START-OF-SELECTIONs occurrence in the report.
In your case it is assigning values to the variables, so it will execute from top-to-bottom as a=1 then b=2 and then c=4 and then d=5.
Thanks,
Vinay
08-24-2007 5:34 AM
Hi,
start-of-selection.
a = 1.
start-of-selection.
b = 2.
end-of-selection.
c = 4.
end-of-selection.
d = 5.
In this condition, all statements and event declaration are correct.
Each variable will have the respective assigned values (provided a,b,c,d are declared).
Regards
Subramanian
08-24-2007 5:34 AM
Hi
you can use more than one start-of-slection and end-of-slection too.it executes one by one
first a = 1
b = 2
c = 4
d = 5
values assigned correspondingly
regards
sandhya
08-24-2007 5:35 AM
HI,
values of 1245 will be assigned to abcd.
u can write start-of-selection,end-of-selection any number of times.
end-of-selection in ur program will not give u any effect if u will not use LDB(logical database) in ur program
<b>reward if helpful</b>
rgds,
bharat.
08-24-2007 5:39 AM
This will show error.
Bcoz a b c d is not defined as data.
The correct code will be like :-
data d.
data c.
data b.
data a.
start-of-selection.
a = 1.
start-of-selection.
b = 2.
end-of-selection.
c = 4.
end-of-selection.
d = 5.
08-24-2007 5:39 AM
Hi,
It will work means no give any error at fist start-of-event it consider and first end-of-selction event consider.
Rewards points if it is useful.
08-24-2007 5:59 AM
Hi Naresh
you can use more than one start-of-slection and end-of-slection and also it executes one by one
for that values of 1245 will be assigned to abcd.
Regards,
Chanda.