accumulate with buffer-object

jmac13

Member
Hi All I'm using open edge 10.2b


I wondering can you use or something similar to accumulate with buffer-objects.

I've got a loop that go's thur a browses query and puts the fields into a string.


Code:
    get first {&browse-name}.                     
    repeat:                   
         
        process events.                 
        if not available {&browse-table} then                     
            leave.               
         
        assign chrLine = ""         
               intRow  = intRow + 1.            
         
        do intI = 1 to num-entries(xHeaders):         
        
            assign chrVariable = ""        
                   hName = entry(intI,xHeaders).         
        
            case hName:           
                otherwise      
                do:     
                    whFieldInfo  =  whHeaderBuffer:BUFFER-FIELD (hName).     
                    run ExcelFormat(whFieldInfo,intStartRow,intRow,intI).  

                    if whFieldInfo:data-type = "character" then     
                        chrVariable  = excelText(string(whFieldInfo:buffer-value, whFieldInfo:format)).      
                    else      
                        chrVariable  = trim(string(whFieldInfo:buffer-value, whFieldInfo:format)).     
                end.           
            end case.         
         
            If chrVariable = ? then         
                chrLine = chrLine + "|".         
            else         
                chrLine = chrLine + chrVariable + "|".         
        end.

I can add breaks to the query if needed be but I not sure how to use accumulate with the objects
is there a way of doing this? rather than just having to scrap this and do it all hard coded?
 

Cecil

19+ years progress programming and still learning.
Did you get a solution to this problem? I having the same problem.
 

Cecil

19+ years progress programming and still learning.
Hi Cecil,

No I didn't, cant remember what i did to get round it I've slept since aug 2011:)

No Problem. Personally I think it's an oversight from the Progress developers. I've raised a support request but no doubt they will admit that there is a bug but because it been like this for years they will roll-over and say that it's now the expected behaviour.
 
Top