Consultor Eletrônico



Kbase 19210: OPEN CLIENT: What Order Are Temp Table Fields Listed (.LOG)
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/25/1999
After successfully generating a proxy object the log file (.LOG) contains a listing of the parameters defined for each 4GL program, internal procedure or user defined function.

Customers have asked what order the fields within a temp-table are listed in because the fields are not listed in either alphabetical order nor are they listed by the "Order Number" as shown in the Data Dictionary.

The fields within a temp-table are listed by their "relative position" within the metaschema (i.e. the _field._field-rpos field).

The following sample code shows you how you can determine the order in which fields will appear in the proxy log file:


FIND FIRST _file WHERE _file-name = "Customer" NO-LOCK.

FOR EACH _field WHERE _file-recid = RECID(_file) BY _field-rpos:
DISPLAY _field-name _field-rpos.
END.