Page 1 of 1
Array create
Posted: Mon Apr 02, 2007 10:13 am
by radhak
I am using R&R version 10.X____I need to read a file (Scan) and take each record fitting to the condition and populate a line like an array.____Eg: Scanned file gives 5 records and the line in the report should have the value from the first record in the first location, the second in the second location, third in the third location etc.____If there are only 2 records then only two items should appear in the line one after the other. If there aren^t any then the line should be blank. ____I have been trying to do this for a longtime and have not found any solution. Would appreciate if any one out there would help me.____Thanks in Advance
=> RE: Array create
Posted: Tue Apr 03, 2007 10:42 am
by kfleming
Look at the article:____http://www.livewarepub.com/ftp/TechDocs/Printing_Related_Records.pdf ____and see if that technique might help.____Kathleen__R&R Support__
==> RE: Array create
Posted: Mon Apr 09, 2007 11:37 pm
by radhak
Thanks kathleen.____Is there any way I could print something which is normally printed on a detail line band on the header band.____What I am trying to do here is that to print the first set of values of the array (generated by detail line) to print on the header line at a specific location and then continue to print below on the detail line.____Group header line : XXXXXX XXXX XXXXX ARRAY DATA XXXXX XXXX__Detail Line: ARRAY DATA__Detail Line: ARRAY DATA____Thanks in Advance__Radha
===> RE: Array create
Posted: Tue Apr 10, 2007 7:09 am
by kfleming
You can use a pre-processed total to print something in the header band. For a character field the total would be a maximum of the field.____This might work here.____Kathleen__R&R Support
====> RE: Array create
Posted: Thu Apr 12, 2007 10:39 pm
by radhak
Kathleen,____I did read through the document and tried to create the array, but when I tried the calc PRODLIST:____IIF(COUNT=1,SCOD+" ",PRODLIST+SCOD+" ")____R&R came up with an error message and could not get this even saved as a calculation.____The error message is: Unrecognized name or operator and the cursor is in front of the word PRODLIST.____SCOD is a character field and I am not sure as to why this error messgage comes up.____Would appreciate your assistance