The following code is used to delete a matrix. The name of the matrix is entered by the user in an edit control (EDT_MatrixName).
We will assume that the matrix to delete is already created.
// -- Click code on BTN_Delete
// Delete the matrix
MatDelete(EDT_MatrixName)
Info("The deletion was performed")