PC SOFT

AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

  • Copying a matrix
Copying a matrix
The following code is used to copy a matrix. The name of the source matrix is entered by the user in an edit control (EDT_MatrixName).
We assume that the matrix to copy is already created. The existence of the matrix is checked by MatExist.
// -- Click code on BTN_Copy
// Declare the variables
ResCopy is boolean
// Checks the matrix existence
IF MatExist(EDT_MatrixName) = True THEN
// Copy the matrix
ResCopy = MatCopy(EDT_MatrixName, "MyCopiedMatrix")
IF ResCopy = True THEN
Info("The matrix was copied")
ELSE
// Display the error message
Error(ErrorInfo(errMessage))
END
ELSE
Info("The matrix does not exist")
END
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario