Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

Rev 1 | Rev 19 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 459... Línea 459...
459
        
459
        
460
        
460
        
461
        if (sqlite3_prepare(db, query, -1, &statement, nil) == SQLITE_OK){
461
        if (sqlite3_prepare(db, query, -1, &statement, nil) == SQLITE_OK){
462
            if(sqlite3_step(statement) == SQLITE_ROW){
462
            if(sqlite3_step(statement) == SQLITE_ROW){
463
                count = Int(sqlite3_column_int(statement, 0))
463
                count = Int(sqlite3_column_int(statement, 0))
464
                print("\(count)")
464
                //print("\(count)")
465
            }
465
            }
466
        }
466
        }
467
        sqlite3_finalize(statement)
467
        sqlite3_finalize(statement)
Línea 478... Línea 478...
478
        
478
        
479
        
479
        
480
        if (sqlite3_prepare(db, query, -1, &statement, nil) == SQLITE_OK) {
480
        if (sqlite3_prepare(db, query, -1, &statement, nil) == SQLITE_OK) {
481
            if(sqlite3_step(statement) == SQLITE_ROW){
481
            if(sqlite3_step(statement) == SQLITE_ROW){
482
                count = Int(sqlite3_column_int(statement, 0))
482
                count = Int(sqlite3_column_int(statement, 0))
483
                print("\(count)")
483
                //print("\(count)")/
484
            }
484
            }
485
        }
485
        }
486
        sqlite3_finalize(statement)
486
        sqlite3_finalize(statement)
Línea 499... Línea 499...
499
        
499
        
500
        
500
        
501
        if (sqlite3_prepare(db, query, -1, &statement, nil) == SQLITE_OK) {
501
        if (sqlite3_prepare(db, query, -1, &statement, nil) == SQLITE_OK) {
502
            if(sqlite3_step(statement) == SQLITE_ROW){
502
            if(sqlite3_step(statement) == SQLITE_ROW){
503
                count = Int(sqlite3_column_int(statement, 0))
503
                count = Int(sqlite3_column_int(statement, 0))
504
                print("\(count)")
504
                //print("\(count)")
505
            }
505
            }
506
        }
506
        }
507
        sqlite3_finalize(statement)
507
        sqlite3_finalize(statement)
Línea 520... Línea 520...
520
        
520
        
521
        
521
        
522
        if (sqlite3_prepare(db, query, -1, &statement, nil) == SQLITE_OK) {
522
        if (sqlite3_prepare(db, query, -1, &statement, nil) == SQLITE_OK) {
523
            if(sqlite3_step(statement) == SQLITE_ROW){
523
            if(sqlite3_step(statement) == SQLITE_ROW){
524
                count = Int(sqlite3_column_int(statement, 0))
524
                count = Int(sqlite3_column_int(statement, 0))
525
                print("\(count)")
525
                //print("\(count)")
526
            }
526
            }
527
        }
527
        }
528
        sqlite3_finalize(statement)
528
        sqlite3_finalize(statement)
Línea 584... Línea 584...
584
        
584
        
585
        
585
        
586
        if (sqlite3_prepare(db, query, -1, &statement, nil) == SQLITE_OK) {
586
        if (sqlite3_prepare(db, query, -1, &statement, nil) == SQLITE_OK) {
587
            if(sqlite3_step(statement) == SQLITE_ROW){
587
            if(sqlite3_step(statement) == SQLITE_ROW){
588
                count = Int(sqlite3_column_int(statement, 0))
588
                count = Int(sqlite3_column_int(statement, 0))
589
                print("\(count)")
589
                //print("\(count)")
590
            }
590
            }
591
        }
591
        }
592
        sqlite3_finalize(statement)
592
        sqlite3_finalize(statement)
Línea 604... Línea 604...
604
        
604
        
605
        
605
        
606
        if (sqlite3_prepare(db, query, -1, &statement, nil) == SQLITE_OK) {
606
        if (sqlite3_prepare(db, query, -1, &statement, nil) == SQLITE_OK) {
607
            if(sqlite3_step(statement) == SQLITE_ROW){
607
            if(sqlite3_step(statement) == SQLITE_ROW){
608
                count = Int(sqlite3_column_int(statement, 0))
608
                count = Int(sqlite3_column_int(statement, 0))
609
                print("\(count)")
609
                //print("\(count)")
610
            }
610
            }
611
        }
611
        }
612
        sqlite3_finalize(statement)
612
        sqlite3_finalize(statement)
Línea 624... Línea 624...
624
        
624
        
625
        
625
        
626
        if (sqlite3_prepare(db, query, -1, &statement, nil) == SQLITE_OK) {
626
        if (sqlite3_prepare(db, query, -1, &statement, nil) == SQLITE_OK) {
627
            if(sqlite3_step(statement) == SQLITE_ROW){
627
            if(sqlite3_step(statement) == SQLITE_ROW){
628
                count = Int(sqlite3_column_int(statement, 0))
628
                count = Int(sqlite3_column_int(statement, 0))
629
                print("\(count)")
629
                //print("\(count)")
630
            }
630
            }
631
        }
631
        }
632
        sqlite3_finalize(statement)
632
        sqlite3_finalize(statement)
Línea 645... Línea 645...
645
        
645
        
646
        
646
        
647
        if (sqlite3_prepare(db, query, -1, &statement, nil) == SQLITE_OK) {
647
        if (sqlite3_prepare(db, query, -1, &statement, nil) == SQLITE_OK) {
648
            if(sqlite3_step(statement) == SQLITE_ROW){
648
            if(sqlite3_step(statement) == SQLITE_ROW){
649
                count = Int(sqlite3_column_int(statement, 0))
649
                count = Int(sqlite3_column_int(statement, 0))
650
                print("\(count)")
650
                //print("\(count)")
651
            }
651
            }
652
        }
652
        }
653
        sqlite3_finalize(statement)
653
        sqlite3_finalize(statement)
Línea 666... Línea 666...
666
        
666
        
667
        
667
        
668
        if (sqlite3_prepare(db, query, -1, &statement, nil) == SQLITE_OK) {
668
        if (sqlite3_prepare(db, query, -1, &statement, nil) == SQLITE_OK) {
669
            if(sqlite3_step(statement) == SQLITE_ROW){
669
            if(sqlite3_step(statement) == SQLITE_ROW){
670
                count = Int(sqlite3_column_int(statement, 0))
670
                count = Int(sqlite3_column_int(statement, 0))
671
                print("\(count)")
671
                //print("\(count)")
672
            }
672
            }
673
        }
673
        }
674
        sqlite3_finalize(statement)
674
        sqlite3_finalize(statement)
Línea 687... Línea 687...
687
        
687
        
688
        
688
        
689
        if (sqlite3_prepare(db, query, -1, &statement, nil) == SQLITE_OK) {
689
        if (sqlite3_prepare(db, query, -1, &statement, nil) == SQLITE_OK) {
690
            if(sqlite3_step(statement) == SQLITE_ROW){
690
            if(sqlite3_step(statement) == SQLITE_ROW){
691
                count = Int(sqlite3_column_int(statement, 0))
691
                count = Int(sqlite3_column_int(statement, 0))
692
                print("\(count)")
692
                //print("\(count)")
693
            }
693
            }
694
        }
694
        }
695
        sqlite3_finalize(statement)
695
        sqlite3_finalize(statement)
Línea 708... Línea 708...
708
        
708
        
709
        
709
        
710
        if (sqlite3_prepare(db, query, -1, &statement, nil) == SQLITE_OK) {
710
        if (sqlite3_prepare(db, query, -1, &statement, nil) == SQLITE_OK) {
711
            if(sqlite3_step(statement) == SQLITE_ROW){
711
            if(sqlite3_step(statement) == SQLITE_ROW){
712
                count = Int(sqlite3_column_int(statement, 0))
712
                count = Int(sqlite3_column_int(statement, 0))
713
                print("\(count)")
713
                //print("\(count)")
714
            }
714
            }
715
        }
715
        }
716
        sqlite3_finalize(statement)
716
        sqlite3_finalize(statement)