Property Integer Item_Limit
| Read Access: | Get Item_Limit to IntegerVariable |
| Write Access: | Set Item_Limit to IntegerVariable/Value |
The Item_Limit property (along with Base_Item) is used to limit the scope of the standard entry-item-manipulation messages. The Item_Limit defines the number of entry items in the group that the entry messages are to work with. The messages affected are: Entry_Display, Entry_Update, Entry_Clear, Item_Change, and Validate_Items. If the property is not set, the total number of items is used. This property is of little use in single item entry objects. This property is used by dbGrid class objects to limit the scope of the data entry messages to the "current row".
In grid-type classes, Item_Limit contains the number of columns in a row.
This sample function loops through the columns in a dbGrid (named oOrderDtl_Grid) and returns how many columns display data from the OrderDtl table.
Function OrderDtlColumnCount Returns Integer
Integer i iColumns iOrderDtlColumns
Get Item_Limit of oOrderDtl_Grid to iColumns
For i from 0 to (iColumns-1)
If (Data_File(oOrderDtl_Grid, i) = OrderDtl.File_Number) Begin
Increment iOrderDtlColumns
End
Loop
Function_Return iOrderDtlColumns
End_Function
When in the WideList class, default is 1.