Partilhar via


FormDataSource.first Method

Definition

Moves focus to the first record in the data source.

public:
 override int first();
public override int first ();
override this.first : unit -> int
Public Overrides Function first () As Integer

Returns

A non-zero value if focus is successfully moved to the first record.

Remarks

This method is called when a user selects the first record in a form by pressing CTRL+HOME. The first method can be overridden on a form data source. Right-click the Methods node under the data source, point to Override Method, and then click first.

The following example overrides the first method for the InventTransPostingFinancial data source on the InventTrans form and returns the last record in another data source that is used on the form.

int first() 
{ 
    return inventTrans_ds.first(); 
}

Applies to