Changeset 532b6fb in tol
- Timestamp:
- Jun 24, 2010, 1:44:31 PM (16 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 5129d30
- Parents:
- db38740
- Location:
- tol/btol/bdb
- Files:
-
- 2 edited
-
bdb.cpp (modified) (15 diffs)
-
bdspool.cpp (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/btol/bdb/bdb.cpp
rdb38740 r532b6fb 463 463 //-------------------------------------------------------------------- 464 464 { 465 if(CheckNonDeclarativeAction("BDBOpen")) { return; } 465 466 alias_ ++; 466 467 BText alias = BText("_BDB_")+alias_+"_"; … … 546 547 //-------------------------------------------------------------------- 547 548 { 549 if(CheckNonDeclarativeAction("BDBClose")) { return; } 548 550 BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; } 549 551 bdb->File()->Close(); … … 569 571 //-------------------------------------------------------------------- 570 572 { 573 if(CheckNonDeclarativeAction("BDBFieldName")) { return; } 571 574 BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; } 572 575 contens_ = bdb->File()->FieldName((BInt)Real(Arg(2))-1); … … 587 590 //-------------------------------------------------------------------- 588 591 { 592 if(CheckNonDeclarativeAction("BDBFieldPos")) { return; } 589 593 BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; } 590 594 contens_ = 1+bdb->File()->Field(Text(Arg(2))); … … 605 609 //-------------------------------------------------------------------- 606 610 { 611 if(CheckNonDeclarativeAction("BDBLine")) { return; } 607 612 BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; } 608 613 contens_ = bdb->File()->GetRegister((BInt)Real(Arg(2))-1); … … 623 628 //-------------------------------------------------------------------- 624 629 { 630 if(CheckNonDeclarativeAction("BDBReg")) { return; } 625 631 BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; } 626 632 bdb->Reg((BInt)Real(Arg(2))-1, contens_); … … 640 646 //-------------------------------------------------------------------- 641 647 { 648 if(CheckNonDeclarativeAction("BDBTable")) { return; } 642 649 BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; } 643 650 BInt reg = bdb->File()->RegNumber(); … … 666 673 //-------------------------------------------------------------------- 667 674 { 675 if(CheckNonDeclarativeAction("BDBRead")) { return; } 668 676 BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; } 669 677 … … 687 695 //-------------------------------------------------------------------- 688 696 { 697 if(CheckNonDeclarativeAction("BDBCell")) { return; } 689 698 BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; } 690 699 … … 709 718 //-------------------------------------------------------------------- 710 719 { 720 if(CheckNonDeclarativeAction("BDBSort")) { return; } 711 721 BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; } 712 722 BSet field; … … 753 763 //-------------------------------------------------------------------- 754 764 { 765 if(CheckNonDeclarativeAction("BDBSortAndSave")) { return; } 755 766 BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; } 756 767 BText path = Text(Arg(2)); … … 803 814 //-------------------------------------------------------------------- 804 815 { 816 if(CheckNonDeclarativeAction("BDBClassify")) { return; } 805 817 BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; } 806 818 BSet field = Set(Arg(2)); … … 859 871 //-------------------------------------------------------------------- 860 872 { 873 if(CheckNonDeclarativeAction("BDBSeries")) { return; } 861 874 BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; } 862 875 BSet dim = Set(Arg(2)); … … 955 968 //-------------------------------------------------------------------- 956 969 { 970 if(CheckNonDeclarativeAction("BDBSaveAs")) { return; } 957 971 BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; } 958 972 … … 1037 1051 //-------------------------------------------------------------------- 1038 1052 { 1053 if(CheckNonDeclarativeAction("BDBExtract")) { return; } 1039 1054 BDataBase* bdb = GetDataBase(Arg(1)); if(!bdb) { return; } 1040 1055 -
tol/btol/bdb/bdspool.cpp
rdb38740 r532b6fb 207 207 //-------------------------------------------------------------------- 208 208 { 209 if(CheckNonDeclarativeAction("DBOpen")) { return; } 209 210 BSet dbStruct; 210 211 … … 256 257 ////////////////////////////////////////////////////////////////////////////// 257 258 { 259 if(CheckNonDeclarativeAction("DBActivate")) { return; } 258 260 contens_ = dbActivate(Text(Arg(1)).String()); 259 261 } … … 283 285 //-------------------------------------------------------------------- 284 286 { 287 if(CheckNonDeclarativeAction("DBGetOpened")) { return; } 285 288 BText B = "(Funcion DBGetOpened)"; 286 289 const char *type = Text(Arg(1)).String(); … … 321 324 //-------------------------------------------------------------------- 322 325 { 326 if(CheckNonDeclarativeAction("DBClose")) { return; } 323 327 const char* alias = NULL; 324 328 … … 342 346 void BDatDBExecQuery::CalcContens() 343 347 { 348 if(CheckNonDeclarativeAction("DBExecQuery")) { return; } 344 349 const BChar* query = Text(Arg(1)).String(); 345 350 contens_ = dbExecQuery(query); … … 365 370 //-------------------------------------------------------------------- 366 371 { 372 if(CheckNonDeclarativeAction("DBSeries")) { return; } 367 373 BText B = "(Funcion DBSeries) "; 368 374 … … 561 567 //-------------------------------------------------------------------- 562 568 { 569 if(CheckNonDeclarativeAction("DBSeriesColumn")) { return; } 563 570 BText B = "(Funcion DBSeriesColumn) "; 564 571 … … 761 768 //-------------------------------------------------------------------- 762 769 { 770 if(CheckNonDeclarativeAction("DBSeriesTable")) { return; } 763 771 BText B = "(Funcion DBSeriesTable) "; 764 772 … … 993 1001 //-------------------------------------------------------------------- 994 1002 { 1003 if(CheckNonDeclarativeAction("DBMatrix")) { return; } 995 1004 BText B = "(Funcion DBMatrix) "; 996 1005 BInt i,j; … … 1033 1042 //-------------------------------------------------------------------- 1034 1043 { 1044 if(CheckNonDeclarativeAction("DBTable")) { return; } 1035 1045 BText B = "(Funcion DBTable) "; 1036 1046 BText query = Text(Arg(1)); … … 1219 1229 //-------------------------------------------------------------------- 1220 1230 { 1231 if(CheckNonDeclarativeAction("DBCreateSeriesTable")) { return; } 1221 1232 BText B = "(Funcion DBCreateSeriesTable) "; 1222 1233 BText name = Text(Arg(1)); … … 1386 1397 // problema) como en prefijos, lo cual si incompatibiliza el uso de map. 1387 1398 1399 if(CheckNonDeclarativeAction("DBTableColumn")) { return; } 1388 1400 BText B = "(Funcion DBTableColumn) "; 1389 1401 BText query = Text(Arg(1));
Note: See TracChangeset
for help on using the changeset viewer.
