OE10.1A
AIX 5.2
Isn't it possible to use Export statement on a dynamic buffer?
I tried to use a statement like - EXPORT DELIMITER "," h_table.
where h_table is a handle to a dynamic buffer,
But gave me error -
Use the INTEGER function to see WIDGET-HANDLE variables. (3449)
To avoid confusion among widget typs, WIDGET-HANDLE variables themselves cannnot be DISPLAYed. For example: define var abc as widget-handle. display "hi" with frame x. abc = frame x:handle. display abc. An attempt to display abc would show the address of abc, not "frame x", which is assigned to it. Instead, you should say: DISPLAY INTEGER(abc).
Which I think is because it is not being able to recognize the record in the buffer but trying to access the handle object itself.
Will have to export it manually field by field using buffer-field:buffer-value or there is a trick to use EXPORT statement with Dynamic buffer too?
Have a look at this.
Thanks Simon,
So I'll have to code it to export them field by field..that's the only option with a Dynamic Buffer?
Until PSC updates "EXPORT" to work with buffer handles.
Thanks Again Simon for pointing me to the sample code!!!
Regards
Debayan