close
Warning:
Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.
- Timestamp:
-
Mar 25, 2011, 5:26:34 PM (14 years ago)
- Author:
-
Víctor de Buen Remiro
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v2
|
v3
|
|
15 | 15 | Activates the worksheet with specified name |
16 | 16 | */ |
17 | | Real ActivateNamedWS(Text workSheetName, Real readRange, Real headerIndexedByName); |
| 17 | Real ActivateNamedWS(Text workSheetName, Real readRange, Real |
| 18 | headerIndexedByName); |
18 | 19 | |
19 | 20 | /* |
20 | 21 | Non static method defined at TolExcel::@WorkBook |
21 | 22 | Activates the n-th worksheet. |
22 | | If readRange is true then calls to GetSheetMaxRange with argument headerIndexedByName |
| 23 | If readRange is true then calls to GetSheetMaxRange with argument |
| 24 | headerIndexedByName |
23 | 25 | */ |
24 | 26 | Real ActivateWS(Real workSheetNumber, Real readRange, Real headerIndexedByName); |
… |
… |
|
26 | 28 | /* |
27 | 29 | Non static method defined at TolExcel::@WorkBook |
28 | | Closes the workbook if it is has been open. If you doesn't close it, the workbook will be closed at instance destruction time. |
| 30 | Closes the workbook if it is has been open. If you doesn't close it, the |
| 31 | workbook will be closed at instance destruction time. |
29 | 32 | */ |
30 | 33 | Real Close(Real void); |
… |
… |
|
34 | 37 | Call to methodSet ReadMatrix(firstRow, col, _.maxRow-firstRow+1, 1) |
35 | 38 | Method GetSheetMaxRange must be called before. |
36 | | You must set minRow and minCol members before to calling GetSheetMaxRange if there are empty rows or columns before the data cells |
37 | | Returns a Matrix with the numeric values of a rectangle of cells in the current work sheet. Non numeric or empty cells will be interpreted as unknown values. |
| 39 | You must set minRow and minCol members before to calling GetSheetMaxRange if |
| 40 | there are empty rows or columns before the data cells |
| 41 | Returns a Matrix with the numeric values of a rectangle of cells in the current |
| 42 | work sheet. Non numeric or empty cells will be interpreted as unknown values. |
38 | 43 | */ |
39 | 44 | Matrix GetFullColumn(Real col, Real firstRow); |
… |
… |
|
42 | 47 | Non static method defined at TolExcel::@WorkBook |
43 | 48 | Call to methodSet ReadMatrix(firstRow, col, _.maxRow-firstRow+1, 1) |
44 | | where col is the index of the column which first row has the specified name.Method GetSheetMaxRange must be called before. |
45 | | You must set minRow and minCol members before to calling GetSheetMaxRange if there are empty rows or columns before the data cells |
46 | | Returns a Matrix with the numeric values of a rectangle of cells in the current work sheet. Non numeric or empty cells will be interpreted as unknown values. |
| 49 | where col is the index of the column which first row has the specified |
| 50 | name.Method GetSheetMaxRange must be called before. |
| 51 | You must set minRow and minCol members before to calling GetSheetMaxRange if |
| 52 | there are empty rows or columns before the data cells |
| 53 | Returns a Matrix with the numeric values of a rectangle of cells in the current |
| 54 | work sheet. Non numeric or empty cells will be interpreted as unknown values. |
47 | 55 | */ |
48 | 56 | Matrix GetFullColumnByName(Text name, Real firstRow); |
… |
… |
|
52 | 60 | Call to methodSet ReadMatrix(minRow=1, minCol=1, _.numRow, _.numCol) |
53 | 61 | Method GetSheetMaxRange must be called before. |
54 | | You must set minRow and minCol members before to calling GetSheetMaxRange if there are empty rows or columns before the data cells |
55 | | Returns a Matrix with the numeric values of a rectangle of cells in the current work sheet. Non numeric or empty cells will be interpreted as unknown values. |
| 62 | You must set minRow and minCol members before to calling GetSheetMaxRange if |
| 63 | there are empty rows or columns before the data cells |
| 64 | Returns a Matrix with the numeric values of a rectangle of cells in the current |
| 65 | work sheet. Non numeric or empty cells will be interpreted as unknown values. |
56 | 66 | */ |
57 | 67 | Matrix GetFullMatrix(Real void); |
… |
… |
|
59 | 69 | /* |
60 | 70 | Non static method defined at TolExcel::@WorkBook |
61 | | Call to methodSet GetRange(minRow=1, minCol=1, _.numRow, _.numCol, columnDefaults) |
62 | | Method GetSheetMaxRange must be called before. |
63 | | You must set minRow and minCol members before to calling GetSheetMaxRange if there are empty rows or columns before the data cells |
64 | | Returns a Set of Sets with the values of a rectangle of cells in the current work sheet. Each cell will have any of allowed types : Text, Real, Date. |
65 | | When argument columnDefaults is not the empty set, then if a cell hasn't the specified type for its column in argument columnDefaults, then the unknown value of the type will be returned. |
| 71 | Call to methodSet GetRange(minRow=1, minCol=1, _.numRow, _.numCol, |
| 72 | columnDefaults) |
| 73 | Method GetSheetMaxRange must be called before. |
| 74 | You must set minRow and minCol members before to calling GetSheetMaxRange if |
| 75 | there are empty rows or columns before the data cells |
| 76 | Returns a Set of Sets with the values of a rectangle of cells in the current |
| 77 | work sheet. Each cell will have any of allowed types : Text, Real, Date. |
| 78 | When argument columnDefaults is not the empty set, then if a cell hasn't the |
| 79 | specified type for its column in argument columnDefaults, then the unknown |
| 80 | value of the type will be returned. |
66 | 81 | */ |
67 | 82 | Set GetFullRange(Set columnDefaults); |
… |
… |
|
71 | 86 | Call to methodSet ReadSeries(minRow=1, minCol=1, _.numRow, _.numCol, dating) |
72 | 87 | Method GetSheetMaxRange must be called before. |
73 | | You must set minRow and minCol members before to calling GetSheetMaxRange if there are empty rows or columns before the data cells |
74 | | Returns a Set of series with specified dating. The first columne in the range is considered as the dates supporting the data of the Series. Every column from the column 2 on is considered as the data of one Serie. If dating is W then it will readed from the cell at left top corner. If this cell is empty or it's not a valid TimeSet then the default dating C will be used. |
| 88 | You must set minRow and minCol members before to calling GetSheetMaxRange if |
| 89 | there are empty rows or columns before the data cells |
| 90 | Returns a Set of series with specified dating. The first columne in the range |
| 91 | is considered as the dates supporting the data of the Series. Every column from |
| 92 | the column 2 on is considered as the data of one Serie. If dating is W then it |
| 93 | will readed from the cell at left top corner. If this cell is empty or it's not |
| 94 | a valid TimeSet then the default dating C will be used. |
75 | 95 | */ |
76 | 96 | Set GetFullSeries(TimeSet dating, Text dateFormat); |
… |
… |
|
80 | 100 | Call to methodSet ReadVMatrix(firstRow, col, _.maxRow-firstRow+1, 1) |
81 | 101 | Method GetSheetMaxRange must be called before. |
82 | | You must set minRow and minCol members before to calling GetSheetMaxRange if there are empty rows or columns before the data cells |
83 | | Returns a VMatrix with the numeric values of a rectangle of cells in the current work sheet. Non numeric or empty cells will be interpreted as unknown values. |
| 102 | You must set minRow and minCol members before to calling GetSheetMaxRange if |
| 103 | there are empty rows or columns before the data cells |
| 104 | Returns a VMatrix with the numeric values of a rectangle of cells in the |
| 105 | current work sheet. Non numeric or empty cells will be interpreted as unknown |
| 106 | values. |
84 | 107 | */ |
85 | 108 | VMatrix GetFullVColumn(Real col, Real firstRow); |
… |
… |
|
88 | 111 | Non static method defined at TolExcel::@WorkBook |
89 | 112 | Call to methodSet ReadVMatrix(firstRow, col, _.maxRow-firstRow+1, 1) |
90 | | where col is the index of the column which first row has the specified name.Method GetSheetMaxRange must be called before. |
91 | | You must set minRow and minCol members before to calling GetSheetMaxRange if there are empty rows or columns before the data cells |
92 | | Returns a VMatrix with the numeric values of a rectangle of cells in the current work sheet. Non numeric or empty cells will be interpreted as unknown values. |
| 113 | where col is the index of the column which first row has the specified |
| 114 | name.Method GetSheetMaxRange must be called before. |
| 115 | You must set minRow and minCol members before to calling GetSheetMaxRange if |
| 116 | there are empty rows or columns before the data cells |
| 117 | Returns a VMatrix with the numeric values of a rectangle of cells in the |
| 118 | current work sheet. Non numeric or empty cells will be interpreted as unknown |
| 119 | values. |
93 | 120 | */ |
94 | 121 | VMatrix GetFullVColumnByName(Text name, Real firstRow); |
… |
… |
|
98 | 125 | Call to methodSet ReadVMatrix(minRow=1, minCol=1, _.numRow, _.numCol) |
99 | 126 | Method GetSheetMaxRange must be called before. |
100 | | You must set minRow and minCol members before to calling GetSheetMaxRange if there are empty rows or columns before the data cells |
101 | | Returns a VMatrix with the numeric values of a rectangle of cells in the current work sheet. Non numeric or empty cells will be interpreted as unknown values. |
| 127 | You must set minRow and minCol members before to calling GetSheetMaxRange if |
| 128 | there are empty rows or columns before the data cells |
| 129 | Returns a VMatrix with the numeric values of a rectangle of cells in the |
| 130 | current work sheet. Non numeric or empty cells will be interpreted as unknown |
| 131 | values. |
102 | 132 | */ |
103 | 133 | Matrix GetFullVMatrix(Real void); |
… |
… |
|
105 | 135 | /* |
106 | 136 | Non static method defined at TolExcel::@WorkBook |
107 | | Scans the current work sheet in order to stablish a rectangle of interesting cells, starting from cell [minRow,minCol], wich default value is [1,1]. Reads along first column until an empty cell is found to stablish maxCol. Then, reads along first row until an empty cell is found to stablish maxRow. |
108 | | If argument headerIndexedByName is true stores the cells of first row in member _.headers and indexes it. |
| 137 | Scans the current work sheet in order to stablish a rectangle of interesting |
| 138 | cells, starting from cell [minRow,minCol], wich default value is [1,1]. Reads |
| 139 | along first column until an empty cell is found to stablish maxCol. Then, reads |
| 140 | along first row until an empty cell is found to stablish maxRow. |
| 141 | If argument headerIndexedByName is true stores the cells of first row in member |
| 142 | _.headers and indexes it. |
109 | 143 | Note that cells in first row cannot be repeated and must be of type Text. |
110 | 144 | */ |
… |
… |
|
119 | 153 | /* |
120 | 154 | Non static method defined at TolExcel::@WorkBook |
121 | | Reads from current active work sheet the content of specified cell returning one of these types: Text, Date, Real |
| 155 | Reads from current active work sheet the content of specified cell returning |
| 156 | one of these types: Text, Date, Real |
122 | 157 | */ |
123 | 158 | Anything ReadCell(Real row, Real col); |
… |
… |
|
125 | 160 | /* |
126 | 161 | Non static method defined at TolExcel::@WorkBook |
127 | | Reads from current active work sheet the content of specified cell returning a Date |
| 162 | Reads from current active work sheet the content of specified cell returning a |
| 163 | Date |
128 | 164 | */ |
129 | 165 | Date ReadDate(Real row, Real col); |
… |
… |
|
131 | 167 | /* |
132 | 168 | Non static method defined at TolExcel::@WorkBook |
133 | | Returns a Matrix with the numeric values of a rectangle of cells in the current work sheet. Non numeric or empty cells will be interpreted as unknown values. |
| 169 | Returns a Matrix with the numeric values of a rectangle of cells in the current |
| 170 | work sheet. Non numeric or empty cells will be interpreted as unknown values. |
134 | 171 | */ |
135 | 172 | Matrix ReadMatrix(Real row_ini, Real col_ini, Real row_num, Real col_num); |
… |
… |
|
137 | 174 | /* |
138 | 175 | Non static method defined at TolExcel::@WorkBook |
139 | | Returns a Set of Sets with the values of a rectangle of cells in the current work sheet. Each cell will have any of allowed types : Text, Real, Date. |
140 | | When argument columnDefaults is not the empty set, then if a cell hasn't the specified type for its column in argument columnDefaults, then the unknown value of the type will be returned. |
141 | | */ |
142 | | Set ReadRange(Real row_ini_, Real col_ini_, Real row_num, Real col_num, Set columnDefaults); |
143 | | |
144 | | /* |
145 | | Non static method defined at TolExcel::@WorkBook |
146 | | Reads from current active work sheet the content of specified cell returning a Real |
| 176 | Returns a Set of Sets with the values of a rectangle of cells in the current |
| 177 | work sheet. Each cell will have any of allowed types : Text, Real, Date. |
| 178 | When argument columnDefaults is not the empty set, then if a cell hasn't the |
| 179 | specified type for its column in argument columnDefaults, then the unknown |
| 180 | value of the type will be returned. |
| 181 | */ |
| 182 | Set ReadRange(Real row_ini_, Real col_ini_, Real row_num, Real col_num, Set |
| 183 | columnDefaults); |
| 184 | |
| 185 | /* |
| 186 | Non static method defined at TolExcel::@WorkBook |
| 187 | Reads from current active work sheet the content of specified cell returning a |
| 188 | Real |
147 | 189 | */ |
148 | 190 | Real ReadReal(Real row, Real col); |
… |
… |
|
150 | 192 | /* |
151 | 193 | Non static method defined at TolExcel::@WorkBook |
152 | | Returns a Set of series with specified dating. The first columne in the range is considered as the dates supporting the data of the Series. Every column from the column 2 on is considered as the data of one Serie. If dating is W then it will readed from the cell at left top corner. If this cell is empty or it's not a valid TimeSet then the default dating C will be used. |
153 | | */ |
154 | | Set ReadSeries(Real row_ini, Real col_ini, Real row_num, Real col_num, TimeSet dating, Text dateFormat); |
155 | | |
156 | | /* |
157 | | Non static method defined at TolExcel::@WorkBook |
158 | | Reads from current active work sheet the content of specified cell returning a Text |
| 194 | Returns a Set of series with specified dating. The first columne in the range |
| 195 | is considered as the dates supporting the data of the Series. Every column from |
| 196 | the column 2 on is considered as the data of one Serie. If dating is W then it |
| 197 | will readed from the cell at left top corner. If this cell is empty or it's not |
| 198 | a valid TimeSet then the default dating C will be used. |
| 199 | */ |
| 200 | Set ReadSeries(Real row_ini, Real col_ini, Real row_num, Real col_num, TimeSet |
| 201 | dating, Text dateFormat); |
| 202 | |
| 203 | /* |
| 204 | Non static method defined at TolExcel::@WorkBook |
| 205 | Reads from current active work sheet the content of specified cell returning a |
| 206 | Text |
159 | 207 | */ |
160 | 208 | Text ReadText(Real row, Real col); |
… |
… |
|
162 | 210 | /* |
163 | 211 | Non static method defined at TolExcel::@WorkBook |
164 | | Returns a VMatrix with the numeric values of a rectangle of cells in the current work sheet. Non numeric or empty cells will be interpreted as unknown values. |
| 212 | Returns a VMatrix with the numeric values of a rectangle of cells in the |
| 213 | current work sheet. Non numeric or empty cells will be interpreted as unknown |
| 214 | values. |
165 | 215 | */ |
166 | 216 | VMatrix ReadVMatrix(Real row_ini, Real col_ini, Real row_num, Real col_num); |
… |
… |
|
180 | 230 | /* |
181 | 231 | Non static method defined at TolExcel::@WorkBook |
182 | | Writes into the specified cell of current active work sheet the specified value with on of these types: Text, Date, Real |
| 232 | Writes into the specified cell of current active work sheet the specified value |
| 233 | with on of these types: Text, Date, Real |
183 | 234 | */ |
184 | 235 | Anything WriteCell(Real row, Real col, Anything value); |
… |
… |
|
186 | 237 | /* |
187 | 238 | Non static method defined at TolExcel::@WorkBook |
188 | | Writes a Matrix in the range of cells starting with the specified cell of current active work sheet. |
| 239 | Writes a Matrix in the range of cells starting with the specified cell of |
| 240 | current active work sheet. |
189 | 241 | Returns the number of modified cells. |
190 | 242 | */ |
… |
… |
|
193 | 245 | /* |
194 | 246 | Non static method defined at TolExcel::@WorkBook |
195 | | Writes a range of cells starting with the specified cell of current active work sheet. Set cellValues must be a set of sets which elements are of one of these types: Text, Real, Date. |
| 247 | Writes a range of cells starting with the specified cell of current active work |
| 248 | sheet. Set cellValues must be a set of sets which elements are of one of these |
| 249 | types: Text, Real, Date. |
196 | 250 | Returns the number of modified cells. |
197 | 251 | */ |
… |
… |
|
200 | 254 | /* |
201 | 255 | Non static method defined at TolExcel::@WorkBook |
202 | | Writes a range of cells starting with the specified cell of current active work sheet. Set series must be a set of series with the same dating. |
| 256 | Writes a range of cells starting with the specified cell of current active work |
| 257 | sheet. Set series must be a set of series with the same dating. |
203 | 258 | Returns the number of modified cells. |
204 | 259 | */ |
… |
… |
|
207 | 262 | /* |
208 | 263 | Non static method defined at TolExcel::@WorkBook |
209 | | Writes a VMatrix in the range of cells starting with the specified cell of current active work sheet. |
| 264 | Writes a VMatrix in the range of cells starting with the specified cell of |
| 265 | current active work sheet. |
210 | 266 | Returns the number of modified cells. |
211 | 267 | */ |
… |
… |
|
232 | 288 | /* |
233 | 289 | Non static member defined at TolExcel::@WorkBook |
234 | | Column headers. Used in method GetSheetMaxRange when argument headerIndexedByName is true. |
| 290 | Column headers. Used in method GetSheetMaxRange when argument |
| 291 | headerIndexedByName is true. |
235 | 292 | */ |
236 | 293 | Set _.header = Copy(Empty); |
… |
… |
|
238 | 295 | /* |
239 | 296 | Non static member defined at TolExcel::@WorkBook |
240 | | If true, the first row was interpreted as column headers and will be stored in _.header. Used in method GetSheetMaxRange. |
| 297 | If true, the first row was interpreted as column headers and will be stored in |
| 298 | _.header. Used in method GetSheetMaxRange. |
241 | 299 | */ |
242 | 300 | Real _.headerIndexedByName = False; |
… |
… |
|
268 | 326 | /* |
269 | 327 | Non static member defined at TolExcel::@WorkBook |
270 | | First column to be readed in method GetSheetMaxRange. Must be set by user if it's not the fiersdt one before to calling GetSheetMaxRange |
| 328 | First column to be readed in method GetSheetMaxRange. Must be set by user if |
| 329 | it's not the fiersdt one before to calling GetSheetMaxRange |
271 | 330 | */ |
272 | 331 | Real minCol = 1; |
… |
… |
|
274 | 333 | /* |
275 | 334 | Non static member defined at TolExcel::@WorkBook |
276 | | First row to be readed in method GetSheetMaxRange. Must be set by user if it's not the fiersdt one before to calling GetSheetMaxRange |
| 335 | First row to be readed in method GetSheetMaxRange. Must be set by user if it's |
| 336 | not the fiersdt one before to calling GetSheetMaxRange |
277 | 337 | */ |
278 | 338 | Real minRow = 1; |
… |
… |
|
298 | 358 | /* |
299 | 359 | Static member defined at TolExcel::@WorkBook |
300 | | Maximum number of columns that a work sheet can store. Used in method GetSheetMaxRange. |
| 360 | Maximum number of columns that a work sheet can store. Used in method |
| 361 | GetSheetMaxRange. |
301 | 362 | */ |
302 | 363 | Static Real maxAllowedCol = 256; |
… |
… |
|
304 | 365 | /* |
305 | 366 | Static member defined at TolExcel::@WorkBook |
306 | | Maximum number of rows that a work sheet can store. Used in method GetSheetMaxRange. |
| 367 | Maximum number of rows that a work sheet can store. Used in method |
| 368 | GetSheetMaxRange. |
307 | 369 | */ |
308 | 370 | Static Real maxAllowedRow = 256^2; |