property Record.ItemByPosition (Position as Variant) as Editor
Returns an editor based on its position.

TypeDescription
Position as Variant A long expression that indicates the position of the editor being requested.
Editor An Editor object being requested.
Use the ItemByPosition property to access an editor giving its position. Use the Position property to specify the editor's position. Use the Item property to access an editor by index or by key. Use the Index property to retrieve the index of the editor in the control's collection of Editor objects. Use the Key property to identify an editor. Use the Visible property to hide an editor. By default, the first editor added has the Index property on 0. The Index property of the editor is updated as soon as an editor is removed.

The following VB sample enumerates the visible editors in the control, as they are displayed:

Dim i As Long
With Record1
    For i = 0 To .Count - 1
        Dim e As EXRECORDLibCtl.Editor
        Set e = .ItemByPosition(i)
        If (e.Visible) Then
            Debug.Print e.Label
        End If
    Next
End With

The following VC sample enumerates the visible editors in the control, as they are displayed:

for ( long i = 0; i < m_record.GetCount(); i++ )
{
	CEditor editor = m_record.GetItemByPosition( COleVariant( i ) );
	if ( editor.GetVisible() )
	{
		TCHAR szOutput[1024];
		wsprintf( szOutput, "%s\n", (LPCTSTR)editor.GetLabel() );
		OutputDebugString( szOutput );
	}
}