Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

Code Block
 // 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)