On 9/27/2010 9:36 AM, Rick Schummer wrote:
>>> How do I print the detail line twice?<<
>
> What I do is create a cursor after I have the reporting cursor ready:
>
> LOCAL lnI, ;
>        lnDuplicateRecs
>
> lnDuplicateRecs = 2
>
> CREATE CURSOR curRecDuplicater ;
>     (nCounter i)
>
> FOR lnI = 1 TO lnDuplicateRecs
>     INSERT INTO curRecDuplicater (nCounter) VALUES (lnI)
> ENDFOR
>
> * Now create Cartesian product of the two cursors
>
> SELECT curReport.* ;
>    FROM curReport, curRecDuplicater
>    ORDER BY<what makes sense>  ;
>    INTO CURSOR curReportFinal


Nice tip!

-- 
Mike Babcock, MCP
MB Software Solutions, LLC
President, Chief Software Architect
http://mbsoftwaresolutions.com
http://fabmate.com
http://twitter.com/mbabcock16

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/4ca09efe.4070...@mbsoftwaresolutions.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to