10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Collections// Open a workbook and put it into an OpenROAD// arrayawbs[1] = wbs.open('c:\msoffice\excel\examples\samples.xls');// Index into the OpenROAD array to access a workbook// and set an attribute.awbs[1].author = 'John Smith';// Index into the workbooks collection through an integer// constant and set an attribute of the workbook// being indexed.Wbs.item(1).author = 'Jane Smith';// Index into the workbooks collection through a string// constant and set an attribute of the workbook// being indexed.wbs.item('samples.xls').author = 'Sam';// Index into the workbooks collection through an integer// variable and set an attribute of the workbook// being indexed.x = 1;wbs.item(x).author = 'Sally';// Index into the workbooks collection through an integer// variable and set an attribute of the workbook// being indexed.y = 'samples.xls';wbs.item(y).author = 'unknown';// Index into the workbooks collection through a string// constant and call a method of the workbook being// indexed.wbs.item('samples.xls').close(TRUE,'c:\save.xls',FALSE);// Quit Excel.app.quit();end256 <strong>Programming</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!