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
| Parameter | Description
|
|
iItem (Optional) | The item number (0 if omitted) |
| eOption | The entry option. Can be one of: | Constant | Meaning | | | DD_AutoFind | Executes automatic find EQ when the user navigates out of a DEO | | DD_AutoFind_GE | Executes automatic find GE when the user navigates out of a DEO | | DD_CapsLock | Converts any lower-case characters entered into a DEO to uppercase | | DD_ForcePut | Forces 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_NoEnter | Prevents data entry through the DEO | | DD_NoPut | Prevents 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_DisplayOnly | Causes the cursor to skip the DEO, displays the data as disabled and prevents any data in the DEO from being changed | | DD_Retain | Prevents DEOs from clearing when the user initiates an operation that would normally clear all the DEOs in a view | | DD_RetainAll | Prevents DEOs from ever being cleared | | DD_SkipFound | Prevents data entry to DEOs if the buffer for the table has an active record in it | | DD_Zero_Suppress | Blanks the display of numeric data with a value of zero (0) | | DD_Required | Ensures that data is entered into a DEO | | DD_FindReq | Prevents forward navigationout fof the DEO until a successful find places an active record in the view |
|
Syntax
Property Boolean Item_Option
| Get Item_Option [iItem] eOption to BooleanVariable |
| 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