Type | Description |
The following VB sample adds 10 EditType editors in the control:
With Record1 .BeginUpdate Dim i As Long For i = 1 To 10 .Add "Editor <b>" & i & "</b>", EditType Next .EndUpdate End With
The following VC sample adds 10 EditType editors in the control:
m_record.BeginUpdate(); for ( long i = 1; i < 10; i++ ) { COleVariant vtMissing; vtMissing.vt = VT_ERROR; CString strLabel; strLabel.Format( "Editor <b>%i</b>", i ); CEditor editor = m_record.Add( COleVariant(strLabel), /*EditType*/ 1, vtMissing ); editor.SetValue( COleVariant( i ) ); } m_record.EndUpdate();