Dynamic Buffer Question

Posted by deb2001 on 19-Feb-2009 02:00

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?

All Replies

Posted by Simon de Kraa on 19-Feb-2009 02:52

Have a look at this.

Posted by deb2001 on 19-Feb-2009 04:03

Thanks Simon,

So I'll have to code it to export them field by field..that's the only option with a Dynamic Buffer?

Posted by Tim Kuehn on 19-Feb-2009 08:08

Until PSC updates "EXPORT" to work with buffer handles.

Posted by deb2001 on 19-Feb-2009 09:20

Thanks Again Simon for pointing me to the sample code!!!

Regards

Debayan

This thread is closed