Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Latest commit

 

History

History
42 lines (34 loc) · 1.01 KB

excel.getSingle.md

File metadata and controls

42 lines (34 loc) · 1.01 KB

Excel.getSingle

The getSingle function is established to get several fields as an object from one sheet.

Sample

	var excel = new Excel("test.xlsx");
	var ary = excel.getSingle("Sheet1", 
		{	"data1":"A1", 
			"data2":["B2","#,##0.0","HALF_EVEN"], 
			"data3":["C3","yyyy/MM/dd"], 
			"data4":
			function(){
				return excel.getValue("Sheet1","D4")+excel.getValue("Sheet1","E5");
			}
		}
	);

API

CallingReturning
Excel . getSingle ( sheetName , positionMap )Object
ParametersTypeDescription
sheetNameStringThe sheet name.
positionRowMapObject The map for getting data from a row.
	{	data1:position, 
		data2:[position, formatter, rounder], 
		data3:function(){ return String|Number|Date|Boolean;} 
	}