Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid: Some records shouldn't be selected
Message
From
26/10/2006 02:33:20
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01164272
Message ID:
01164640
Views:
8
In what event of the Grid?
do case
   case nKeyCode =  5 && UP ARROW      
      select tbl
      do while !bof() and ac_level != '3'
         skip -1
      enddo
      this.AfterRowColChange()
*      nodefault
   case nKeyCode =  24 && DOWN ARROW
      select tbl
      do while !eof() and ac_level != '3'
         skip 1
      enddo
      this.AfterRowColChange()
*      nodefault
endcase
It works fine, but it skips 1 record further.
AC_LEVEL
1
2
3
3
if the pointer is on record 1 which is AC_LEVEL = 1 if i press DownArrow it moves to AC_LEVEL = 3 but record 4.
Any help on this.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform