Consultor Eletrônico



Kbase P11902: 4GL. RECORD-LENGTH function
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   19/03/2011
Status: Verified

GOAL:

4GL. RECORD-LENGTH function

GOAL:

How to determine the length of a record within a database.

FACT(s) (Environment):

Progess 9.1x
OpenEdge 10.x
All Supported Operating Systems

FIX:

The RECORD-LENGTH function will return the length of the record that is currently in the record buffer, this means that it is equal to the sum of all the fields of the record.
Progress works with dynamic variable length for Records thus the records of a same table will have different lengths.

Example based on the sports2000 database:
find first customer no-lock.
disp record-length(customer).