GcSpread.Sheets Namespace > Sheet type : setArray Method |
true
, set formulas; otherwise, set values.
var instance = new GcSpread.Sheets.Sheet(name); var value; // Type: any value = instance.setArray(row, column, array, setFormula);
function setArray( row : number, column : number, array : Array, setFormula : boolean ) : any;
true
, set formulas; otherwise, set values.//set value var array = [[1,2,3],[4,5],[6,7,8,9]]; activeSheet.setArray(1, 2, array); //set formula var array = [["=1+1","=2+2","=3+3"],["=4+4","=5+5"],["=6+6","=7+7","=8+8","=9+9"]]; activeSheet.setArray(1, 2, array, true); //get value var newArray = activeSheet.getArray(1, 2, 3, 4); //getformula var newArray = activeSheet.getArray(1, 2, 3, 4, true); //alert(newArray[0]);