![]()  | 
 
GetSelectedRows()->GetCount() missing ASSERT? | 
 
    Post Reply  
   | 
  
| Author | |
   
   znakeeye  
   
   Senior Member  
   Joined: 26 July 2006 Status: Offline Points: 1672  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: GetSelectedRows()->GetCount() missing ASSERT?Posted: 12 February 2007 at 2:58pm  | 
 
| 
   
    I wanted to select all items in my report control and did this: 
int count = GetRecords()->GetCount(); // count == 10 
GetSelectedRows()->SelectBlock(0, count); // 0-11 selected!! Would have been nice if there had been an ASSERT(count < GetCount()); inside the SelectBlock function  
 . Took me some time to find out why my selections got corrupt sometimes.Maybe you should add this minor check in future releases? 
Thanks! 
    | 
 |
![]()  | 
 |
   
   sserge  
   
   Moderator Group  
   Joined: 01 December 2004 Status: Offline Points: 1297  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 12 February 2007 at 3:11pm | 
 
| 
   
    
   Hi, 
   
  Yes, that makes sense, thanks! -- WBR, Serge  | 
 |
![]()  | 
 |
    Post Reply  
   | 
  |
|       
  
  Tweet   	
    | 
 
| Forum Jump | Forum Permissions  ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum  |