sudhir_optima
14 years agoContributor
How to pass array as function parameters
We have written a function which accepts array value.
function SelectMultipleGridvalues(RowIndex,ColumnName)
{
Aliases.QBIS.GrpBox.grdControl.ClickCell (RowIndex[0],ColumnName);
for ( var i=1;i<RowIndex["length"];i++)
Aliases.QBIS.GrpBox.grdControl.ClickCell (RowIndex,ColumnName,skCtrl);
}
We are calling this function by passing the values as
RunScriptRutine SelectMultipleGridvalues (2,5,6),Revenue
But when we run it it just click first row four times ?
Will any one tell me why this is happening
function SelectMultipleGridvalues(RowIndex,ColumnName)
{
Aliases.QBIS.GrpBox.grdControl.ClickCell (RowIndex[0],ColumnName);
for ( var i=1;i<RowIndex["length"];i++)
Aliases.QBIS.GrpBox.grdControl.ClickCell (RowIndex,ColumnName,skCtrl);
}
We are calling this function by passing the values as
RunScriptRutine SelectMultipleGridvalues (2,5,6),Revenue
But when we run it it just click first row four times ?
Will any one tell me why this is happening