Row - DfBaseEntry

Returns the row in a grid that a passed item is located in

Type: Property

Access: Read-Only

Data Type: Integer

Parameters: Integer iItem

ParameterDescription
iItemThe item number


Syntax
 Property Integer Row

Read Access: Get Row iItem 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.