LEN( ) Function Example

The following example opens the customer table in the testdata database. LEN( ) is used to display the widths of the cust_id and contact fields.

CLOSE DATABASES
OPEN DATABASE (HOME(2) + 'Data\testdata')
USE Customer     && Open customer table

CLEAR
? 'Width of contact field: '
?? LEN(contact)
? 'Width of cust_id field: '
?? LEN(cust_id)