Returns the maximum index of columns of the sheet.
 

1 excel.Sheet.getMaxColumn

<excel.Sheet.getMaxColumn>
    <sh /> +
</excel.Sheet.getMaxColumn>
Example
Copy
<xsql-script>
	<body>
		<set name='wb'>
		  <excel.Workbook />
		</set>
		
		<set name="sheet_1">
		  <excel.Workbook.createSheet name="Sheet 1">
		      <wb/>
		  </excel.Workbook.createSheet>
		</set>
		
		<set name="cell_1">
		  <excel.Sheet.createCell row="5" col="2">
		      <sheet_1/>
		  </excel.Sheet.createCell>
		</set>
		
		<excel.Cell.setCellValue>
		  <cell_1/>
		  	<excel.Sheet.getMaxColumn>
		  		<sheet_1/>
		  	</excel.Sheet.getMaxColumn>
		</excel.Cell.setCellValue>
		
		<excel.Workbook.write>
		  <wb/>
		  <file name="test.xls" type="absolute"/>
		</excel.Workbook.write>
	</body>
</xsql-script>