User Tools

Site Tools


contents_return_contents_of_use_variable_.htm
Navigation:  Language Reference > 13 - Built-in Functions >====== CONTENTS (return contents of USE variable) ====== Previous pageReturn to chapter overviewNext page

NewC7.jpg

CONTENTS(control)

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

CHANGE

contents_return_contents_of_use_variable_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1