The WRITE_SYLK function writes the contents of an IDL variable to a SYLK (Symbolic Link) format spreadsheet data file.
| Note |
This routine is written in the IDL language. Its source code can be found in the file write_sylk.pro in the lib subdirectory of the IDL distribution.
Result = WRITE_SYLK( File, Data [, STARTCOL=column] [, STARTROW=row] )
The function returns TRUE if the write operation was successful.
A scalar string specifying the full path name of the SYLK file to write.
A scalar, vector, or 2D array to be written to File.
Set this keyword to the first column of spreadsheet cells to write. If not specified, the write operation begins with the first column found in the file (column 0).
Set this keyword to the first row of spreadsheet cells to write. If not specified, the write operation begins with the first row of cells found in the file (row 0).
Suppose you wish to write the contents of a 2 by 2 floating-point array, data, to a SYLK data file called "bar.slk" such that the matrix would appear with it's upper left data at the cell in the 10th row and the 20th column. Use the following command:
status = WRITE_SYLK('bar.slk', data, STARTROW = 9, STARTCOL = 19)
The IDL variable status will contain the value 1 if the operation was successful.
Introduced: 4.0