SitesMasstec
Programmer
Hello colleagues!
I generated a file name and copy a structure from another file to it:
Then I make many selections with APPEND BLANK and REPLACEs (SELECT SQL would be very big) and got data in ARQUIVO55 file.
Then, to have a report I wrote the code:
It worked fine, as expected, but something is bothering in my mind:
How the report RELCLIENTES knows that it has to work with data from cursor curClientes, if the report Data Environment is empty?
Thank you,
SitesMasstec
I generated a file name and copy a structure from another file to it:
Code:
ARQUIVO55=SYS(2015)
COPY STRUCTURE TO &ARQUIVO55
Then I make many selections with APPEND BLANK and REPLACEs (SELECT SQL would be very big) and got data in ARQUIVO55 file.
Then, to have a report I wrote the code:
Code:
SELECT * FROM &ARQUIVO55 INTO CURSOR curClientes
REPORT FORM RELCLIENTES TO PRINTER PROMPT PREVIEW
It worked fine, as expected, but something is bothering in my mind:
How the report RELCLIENTES knows that it has to work with data from cursor curClientes, if the report Data Environment is empty?
Thank you,
SitesMasstec