>New line is chr(13) + chr(10) but not chr(10) + chr(13)?
VFP accepts chr(10) alone, or chr(13) alone, in some places; for greater safety, better use the "official" combination.
> I will try yours though mine seems to be work fine. Thanks for sharing your class, I will try it to see what will happen to my problem and post to here again. Thanks for your quick help.
The class is supposed to help you with the repetitive aspects of report writing. With the class, you don't have to write a main loop that goes every record, there are special places where you can write code for group headers and group footers (and, of course, you define the corresponding expressions), etc.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)