Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

start-of-selection

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.