Calling convention: CIP_ShowMatrix(Matrix: VariantArray,[FormCaption:String],[ColumnCaptions:String],[MultiSelect:Boolean],[IntraWebCallback:String])
Description: Displays a Variant array in a selection dialog. Desktop mode returns the selected row index or indexes; web mode delivers the selection through the callback script.
Parameters:
Matrix: Variant array to display.
FormCaption: optional dialog caption; defaults to Items.
ColumnCaptions: optional column captions supplied as a value accepted by the viewer.
MultiSelect: optional Boolean enabling multiple row selection; defaults to False.
IntraWebCallback: optional callback script used in web mode; the selection is available as Argument_UserResult.
Returns: Desktop: selected zero-based row index, an array of indexes when MultiSelect is True, or NULL on cancel. Web mode is asynchronous and has no immediate selection result.
Availability: Default; desktop and web behavior differ.
Example:
Matrix := CIP_SQLMatrix("", "SELECT * FROM OEE_USER");
SelectedRow := CIP_ShowMatrix(Matrix, "Select a user", "Name,Login", False, "");