Removes all data leaving blank records.

Syntax

rv = Send_Message(Ctrl, "OLE.Clear", Fill)

Parameters

ParameterDescription
Fill2 to simply clear the table; 1 to fill the cleared table with as many new records as will fit; 0 to leave only one blank record

Remarks

The Clear method is a convenient way to reset an SRP OLE Edit Table control. To leave one blank records, set the Fill parameter to 0. To leave enough blank records to fill the table's visible space, set the Fill parameter to 1. To just clear the table without affecting the number of rows, set the Fill parameter to 2. In either case, the SelPos is always moved back to the top left most selectable

Example

// Clear the table leaving only one blank records 
rv = Send_Message(Ctrl, "OLE.Clear", 0) 

// Clear the table filling the table with blank records 
rv = Send_Message(Ctrl, "OLE.Clear", 1) 

// Clear the table leaving the number of rows alone 
rv = Send_Message(Ctrl, "OLE.Clear", 2)
  • No labels