From 20d9638b0e9b1d47ef1a10e296c73235a3fbbd77 Mon Sep 17 00:00:00 2001 From: James Dunkerley Date: Fri, 6 May 2022 10:07:31 +0100 Subject: [PATCH] add "constants" --- .../lib/Standard/Table/0.0.0-dev/src/Io/Excel.enso | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/distribution/lib/Standard/Table/0.0.0-dev/src/Io/Excel.enso b/distribution/lib/Standard/Table/0.0.0-dev/src/Io/Excel.enso index 554eaf7f95599..d5efac118c930 100644 --- a/distribution/lib/Standard/Table/0.0.0-dev/src/Io/Excel.enso +++ b/distribution/lib/Standard/Table/0.0.0-dev/src/Io/Excel.enso @@ -71,14 +71,18 @@ type Excel_Range Arguments: - column: 1-based index to check is_valid_column : Integer -> Boolean - is_valid_column column = (column > 0) && (column <= 16384) + is_valid_column column = + excel_2007_column_limit = 16384 + (column > 0) && (column <= excel_2007_column_limit) ## Validates if a row index (1-based) is within the valid range for Excel. Arguments: - row: 1-based index to check is_valid_row : Integer -> Boolean - is_valid_row row = (row > 0) && (row <= 1048576) + is_valid_row row = + excel_2007_row_limit = 1048576 + (row > 0) && (row <= excel_2007_row_limit) ## Given a column name parse to the index (1-based) or return index unchanged. column_index : (Text|Integer) -> Integer