Main Content

getNumberOfRows

Class: Simulink.dialog.parameter.CustomTable
Package: Simulink.dialog.parameter

Get the number of rows available in a custom table

Syntax

numberOfRows = tableControl()

Description

numberOfRows = tableControl() gets the number of rows in a custom table.

Output Arguments

expand all

Number of rows in the custom table returned as an integer.

Examples

% Get block mask handle.
maskObj = Simulink.Mask.get(gcb); 

% Get custom table handle.
tableControl = maskObj.getDialogControl('myTable');

% Get number of rows.
numberOfRows = tableControl.getNumberOfRows(); 

Introduced in R2019a