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.
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?
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?