| **Navigation:**  [[introduction.htm|Language Reference]] > 13 - Built-in Functions >====== CONTENTS (return contents of USE variable) ====== | [[decompress.htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[convertansitooem convert ansi strings to ascii .htm|{{btn_next_n.gif|Next page}}]] | | || {{newc7.jpg|NewC7.jpg}} **CONTENTS(**//control//**)** {{blk2blue.jpg|blk2blue.jpg}} | **CONTENTS** | Returns the value in the USE variable of a control. | | //control// | A field number or field equate label. | The **CONTENTS** procedure returns a string containing the value in the USE variable of an ENTRY, OPTION RADIO, or TEXT control. A USE variable may be longer than its associated control field display picture OR may contain fewer characters than its total capacity. The CONTENTS procedure always returns the full length of the USE variable. | **Return Data Type:** | STRING | **Example:** **IF ****CONTENTS****(?LastName) = '' AND ****CONTENTS****(?FirstName) = '' !If first and last name blank,** ** MessageField = 'Must Enter a First or Last Name'         ! display error message** **END** **See Also:** [[prop screentext.htm|PROP:ScreenText]] [[change change control field value .htm|CHANGE]]