hi good evening ,
i have report as shown below ,in first column of a report i want to generate numbers(1,2,3,…),without taking any field
hi good evening ,
i have report as shown below ,in first column of a report i want to generate numbers(1,2,3,…),without taking any field
You can declare integer variable in Global variables and increment it each time you print the section…
thanks for your reply sir,
i have taken no varible as integer and intially i have taken no:=0 as a static ,where i incremented it upto no<>5,but while using this code in report sections,
i have taken textbox (properties of the textbox i have taken source expression as no(global varible),but it is taking the value 5(instead of 1,2,3,4,5) for all the records .how can i get the values as 1,2,3,4,5 etc
no:=0;
WHILE no <> 5 DO BEGIN
no := no + 1;
end;
I hope you are working in Indian Database only.
so please check report 13703
there was no report with that number(13703),i am using delloite database.
it was the task given to me,i was the begginer to the nav i am not getting this can any one can give solution.
I didnt understand why did you write this code
WHILE no <> 5 DO BEGIN
no := no + 1;
end;
Just create a global variable as SlNo.
Intialize it to 0 in the begining
Increment it as SlNo := SlNo + 1;
in OnAftergetrecord or sections where you are showing the values…
ya good morning mohana,
what you have told i tried it ,but it is showing the result like this as below as shown(all ones in first column)
May I know where did you write code? and which code?
y amohana,
i have written the following code in on after getrecord,
slno :=0;
slno :=slno+1;
//slno(integer variable)
i have taken one text box,
properties:=source expression(slno).
this is the code what i have written
y amohana,
i have written the following code in on after getrecord,
slno :=0;
slno :=slno+1;
//slno(integer variable)
i have taken one text box,
properties:=source expression(slno)
this is the code what i have written
It should be in OnPreDataitem
slno :=0;
ya mohana i got it ,thanks for your valuble time spending on this …thanks lot
Welcome.
Please verify the posts which solved your problem…