Progress
Programming
Handbook
Dynamic Buffers for Dynamic Temp–tables
All dynamic buffer attributes and methods are available to dynamic temp–tables. For more information on dynamic buffers, see "Database Triggers" and the Progress Language Reference manual sections on Buffer Object Handle and Buffer–field Object Handle.
Every dynamic temp–table is created with at least one buffer, just like a static temp–table. This default buffer’s object handle is returned by the DEFAULT–BUFFER–HANDLE( ) method. It is through this buffer handle that you have access to the records and fields in the temp–table object as follows:
The DEFAULT–BUFFER–HANDLE( ) method may not be called until the TEMP–TABLE–PREPARE( ) method has been called, since the default buffer is not created until then.
In addition, several new methods have been created to enhance the use of dynamic buffers for dynamic temp–tables:
The CREATE BUFFER statement will now support both temp–tables and buffer handles, as follows:
The following program illustrates the use of buffers and buffer–fields in dynamic temp–tables. It uses a dynamic query which is described in "Using Dynamic Widgets":
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |