>Kamil,
>
>You need to order records before printing. Something like:
>
>select * from (yourtable) ORDER by (fieldName) into cursor irepo
>repo form...
>
No, no, Yuri, you've got me wrong.
I have a report each line of it (header, detail, footer) is a function. The function does two things: sends its output as a string to a txt file and returns the same output to the report for printing. Printing is OK. But the lines in the file appear mixed (line which was above in the report desinger appears below in the file). That obviously means that the report (.frx file) has a certain mechanism which regulates the order of the execution of the report records (within .frx). I've tryed changing physical order of records in .frx - no luck. So the question remains - how to control the sequence of execution of report records (in .frx)?
Hope the explanaition was clear.
Best wishes.
Kamil.
A moment of silence is our cosmic reset button.