Inserts blank records into the edit table.

Syntax

Index = Send_Message(Ctrl, "OLE.InsertRecords", Record, Count)

Parameters

ParameterDescription
RecordIndex to the record before which the new records will be added
CountNumber of records to be inserted

Returns

Index of the first inserted record.

Remarks

The InsertRecords method inserts blank records into the edit table. The Record parameter is the index of the record before which the new records are to be inserted. To append new blank records to the end of the table, set the Record parameter to -1. The Count parameter indicates the number of blank records to inserted and must be greater than zero to have any effect.

Example

// Insert 1 blank record before the second one 
Index = Send_Message(Ctrl, "OLE.InsertRecords", 2, 1) 

// Append 3 blank records to the end of the table 
Index = Send_Message(Ctrl, "OLE.InsertRecords", -1, 3)

See Also

InsertColumnsINSERT

  • No labels