Row - DfBaseEntry
Returns the row in a grid that a passed item is located in
Type: Property
Access: Read-Only
Data Type: Integer
Parameters: None
Parameters
| Parameter | Type | Description |
|---|---|---|
| iItem | Integer | The item number |
Syntax
Property Integer Row
| Access Type | Syntax |
|---|---|
| Read Access: | Get Row to IntegerVariable |
Description
The Row property returns the Row in a grid that a passed item is located in. The object's item_limit must be set to the number of items in a Row for this function to return a result. This message is used by the dbGrid class, and may be used by all rectangular types of dfBaseEntry objects.
Integer iOldItem iNewItem
If (Row(Self,iOldItem)<>Row(Self,iNewItem)) Begin
Send Save_Row (Row(Self,iOldItem))
End
The above code fragment checks to see if the user has changed Rows and if so, automatically saves the Row being exited.