Question How to add fields to a temp table by using its handle (it can be either temp-table:handle or temp-table:default-buffer-handle)

-this is the method in my class​
-either i can get temp-table:handle or temp-table:default-buffer-handle
-is it possible to create field in both cases if not how do i can approach in other way
Code:
METHOD PUBLIC VOID loadFilesFromDir(INPUT cipDir AS CHARACTER , INPUT iphbufhandle  AS HANDLE ):

            IF iphbufhandle:TYPE = "TEMP-TABLE" OR iphbufhandle:TYPE = "BUFFER" THEN
            DO:
                    //  i want to create field for the input handle temp table.
                   // create the temp-table and store something in that field.
                END.
 

Stefan

Well-Known Member
Once the temp-table has been temp-table-prepared you can no longer modify it. You can copy-temp-table to a new temp-table and add your field to the copy.
 
Top