Changeset 42cf8c9 in tol
- Timestamp:
- Aug 18, 2010, 1:17:08 PM (16 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 075e4f0
- Parents:
- 7d960bd
- Location:
- tol/contrib/excel
- Files:
-
- 2 edited
-
test.tol (modified) (1 diff)
-
tolExcel.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/contrib/excel/test.tol
r7d960bd r42cf8c9 1 1 Text my.dir = GetAbsolutePath(".") + "/"; 2 2 Real id = Excel.Open( my.dir + "test.xls" ); 3 Real Excel.ActivateWS( id, 0);3 Real Excel.ActivateWS( id, 1 ); 4 4 5 5 WriteLn( "Lectura Anyhting ..." ); -
tol/contrib/excel/tolExcel.cpp
r7d960bd r42cf8c9 621 621 if ( index.IsKnown() ) { 622 622 int idx = int( index.Value() ); 623 if ( idx > =0 ) {623 if ( idx > 0 ) { 624 624 TolExcel *xls = TolExcel::decode_addr( addr ); 625 625 if ( xls ) { 626 bool status = xls->SetActiveWS( size_t( idx ) );626 bool status = xls->SetActiveWS( size_t( idx - 1 ) ); 627 627 if ( !status ) { 628 628 char buffer[16]; … … 641 641 } else { 642 642 Error( BText( "Excel.ActivateWS: " ) + 643 I2( "invalid work sheet index, must be >= 0",644 "indice de hoja invalido, debe ser >= 0") );643 I2( "invalid work sheet index, must be >= 1", 644 "indice de hoja invalido, debe ser >= 1") ); 645 645 contens_ = BDat( 0.0 ); 646 646 }
Note: See TracChangeset
for help on using the changeset viewer.
