Difference between revisions of "LABEL()"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
|||
Line 29: | Line 29: | ||
[[Category:Table Basics]] | [[Category:Table Basics]] | ||
[[Category:Table Basics Functions]] | [[Category:Table Basics Functions]] | ||
+ | [[Category:Cursor Functions]] |
Revision as of 04:51, 7 December 2012
Contents
Purpose
Function to return field description
Syntax
LABEL(<expN>)
See Also
ADESC(), AFIELDS(), ALTER TABLE, CONSTRAINTS, CREATE TABLE, DATABASE(), DBF(), DESCRIPTION Column Constraint, DISPLAY STRUCTURE, FIELD(), FIELDNAME(), FILTER(), FLDCOUNT(), FLDLIST(), INDEXKEY(), LIST STRUCTURE, NDX(), RTOS()
Description
The LABEL() function is used to return the description of the field <expN> in the currently selected table. Fields are numbered from 1 to FLDCOUNT() according to their position in the table structure.
If <expN> exceeds the number of fields in the table, or there is no currently selected table, then LABEL() returns a null string.
Example
close databases clear open database southwind use example for i = 1 to fldcount() ? "Field: " + field(i) + " - Description: " + label(i) next ?