<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>17 Jan 2015 11:05:00 Z</lastBuildDate><pubDate>17 Jan 2015 11:05:00 Z</pubDate><description>Hi&#13;
&#13;
I am sure other developers are using the Programmed Breaks in reports successfully but I cannot get my head around the code.&#13;
&#13;
According to the Help this is the code that goes in to the BREAK? HEADER section&#13;
&#13;
nSupplier is int = 0&#13;
// Retrieve the identifier of the supplier&#13;
nSupplier = ExtractString(gfsLine, 1, TAB)&#13;
// Find the name of the supplier&#13;
HReadSeekFirst(SUPPLIER, SupplierNum, nSupplier)&#13;
IF HFound() = True THEN&#13;
// Initialize the control&#13;
SupplierName = SUPPLIER.Company&#13;
END&#13;
// Return the identifier of the supplier&#13;
RESULT nSupplier&#13;
&#13;
So I assume the example refers to some table that is printed with a break in each supplier name. I don't know where the RESULT goes to and I don't know what the gfsLine refers to but I get the general idea.&#13;
&#13;
I want to create a report on customers and customer categories. So for every change in Customer Category i.e. from Cash Customers to Dealers I want to break the report and print the customers belonging to that category.&#13;
&#13;
That I sort of get right. However, I also want to print just a list of the customers with the break and only sorted by Customer Code.&#13;
&#13;
My result is that the programmed break now occurs with each customer code instead of a blank heading where the category used to be and just sorted by customer code.&#13;
&#13;
I know I can create 2 reports and don't use the programmed breaks but if I understand how it all fits together I have lot's of other users for the programmed breaks.&#13;
&#13;
Any help please.&#13;
&#13;
Thanks in advance.&#13;
&#13;
&#13;
&#13;
Ericus Steyn</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/49905-18-report-programmed-break/read.awp</link><title>[WB 18]Report - Programmed Break</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
