DdsDataField.Values Property

Gets or sets the list of valid values for the field; separated by blanks.

Syntax

BegProp Values Access(*Public) Type(*String)
   BegGet;  BegSet

Property Values

String containing the list of valid values for the field; separated by blanks.

Remarks

The Values property allows you to display the valid values that the data field can accept in the application; separated by spaces. However, if the Values property is left blank, which is the default, the user can enter anything into the field.

For example, if the application were looking for an input value of A, B, C, or D, you would list the values A B C D in the Values property.

However, unless the user knows what those values stand for, values alone can be confusing. If using Values, you may want to also set the ValuesText property, which allows you to specify one word per value entered in the Values property; separated by spaces.

For the user to see these Values, the ValuesStyle property must be set to either DropdownValues or DropDownBoth.

For example, using A B C D in Values, Add Browse Change Delete in ValuesText, and DropDownBoth in ValuesStyle, the user would see the following in the field:

Changing ValuesStyle to DropdownValues, the following will display:

Note: If there are no entries in the Values property, then regardless if there are entries for the ValuesStyle and ValuesText properties, they will be disregarded and the field will display as a TextBox.

Please note that the DDS VALUES string becomes the setting for the Values property and the default setting for the ValuesStyle property is DropdownValues. When the user drops down the list, the Values elements are displayed.

Requirements

Namespace: ASNA.Monarch.WebDspF

Assembly: ASNA.Monarch.WebDspF.DLL

Platforms: Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows 7, Windows 8 Pro, Windows 10 Pro