if(shiftdown){
        SecBookMark = DataSource1->DataSet->GetBookmark();
        Direction = DataSource1->DataSet->CompareBookmarks(FirBookmark,SecBookMark);
        if(Direction == 0)
          return;
        while(Direction != 0){
          DataSource1->DataSet->MoveBy(Direction);
          DBGrid1->SelectedRows->CurrentRowSelected = true;
          SecBookMark = DataSource1->DataSet->GetBookmark();
          Direction = DataSource1->DataSet->CompareBookmarks(FirBookmark,SecBookMark);
        }
     }
     else{
        FirBookmark = DataSource1->DataSet->GetBookmark();
     }

kenny23 發表在 痞客邦 PIXNET 留言(0) 人氣()