Item_Option - DfBaseEntry

Allows you to query or change the format options for entry_items

Type: Property

Access: Read/Write

Data Type: Boolean

Parameters: Integer iItem Integer eOption

ParameterDescription
iItem (Optional)The item number (0 if omitted)
eOptionThe entry option. Can be one of:

ConstantMeaning
DD_AutoFindExecutes automatic find EQ when the user navigates out of a DEO
DD_AutoFind_GEExecutes automatic find GE when the user navigates out of a DEO
DD_CapsLockConverts any lower-case characters entered into a DEO to uppercase
DD_ForcePutForces the contents of DEOs to be put to bound column's record buffer before a save, even if no changes were made to the DEO
DD_NoEnterPrevents data entry through the DEO
DD_NoPutPrevents data being moved from the DEO back to the record buffer for the bound column, even if new data is entered from the keyboard
DD_DisplayOnlyCauses the cursor to skip the DEO, displays the data as disabled and prevents any data in the DEO from being changed
DD_RetainPrevents DEOs from clearing when the user initiates an operation that would normally clear all the DEOs in a view
DD_RetainAllPrevents DEOs from ever being cleared
DD_SkipFoundPrevents data entry to DEOs if the buffer for the table has an active record in it
DD_Zero_SuppressBlanks the display of numeric data with a value of zero (0)
DD_RequiredEnsures that data is entered into a DEO
DD_FindReqPrevents forward navigationout fof the DEO until a successful find places an active record in the view


Syntax
 Property Boolean Item_Option

Read Access: Get Item_Option [iItem] eOption to BooleanVariable
Write Access: Set Item_Option [iItem] eOption to BooleanVariable/Value


Description

The Item_Option property allows you to query or change the format options for entry_items. The option setting is returned as a Boolean value.

In a typical application, when using Data Dictionaries, this is done using the Field_Option property. That topic also fully explains each possible option.


Sample

This sample sets the SkipFound option of entry item 0 to True.

Set Item_Option 0 SkipFound to True


Sample

This sample checks the CapsLock option of entry item 0 and calls a custom method if is is True.

If (Item_Option(Self, 0, CapsLock)) Begin
    Send MyCustomMethod
End