info(“matrixclickedobject”)

The info(“matrixclickedobject”) function identifies which named object in a matrix was clicked on (if any).


Description

This function identifies which named object in a matrix was clicked on (if any). Objects in a matrix don’t directly respond to clicks. For example, if a button object is placed in a matrix, clicking on the button doesn’t trigger the code associated with that button (unless the button is placed in the header or corner header section of the matrix). However, the code associated with the Matrix object can use the info(“matrixclickedobject”) function to identify which object was clicked on and then perform the appropriate action.

if info("matrixclickedobject") = "Add Row"
    ...
    ...
    ...
elseif info("matrixclickedobject") = "Delete Row"
    ...
    ...
    ...
endif

Of course for this example to work, the matrix frame must contain objects named Add Row and Delete Row (see Object Names).


See Also


History

VersionStatusNotes
10.0NewCarried over from Panorama 6.0