Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.activatecell in Grid
Message
From
15/07/1998 22:49:20
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00117960
Message ID:
00117977
Views:
33
>I just would like to move the cursor down one line after the user press enter (in a grid). but somehow activatecell(activerow+1,activecolumn) doesn't work because activatecell uses a relative grid column row coordinate.
>
>Using keyboard (DNARRAOW BACKTAB ) command works ok. but looks weird with the cursor move down then left :)

Where are you putting the code? If you put this in your BeforeRowColChange event, it seems to work ok (although, I feel like there's probably a better way):

IF lastkey() = 13
NODEFAULT
keyboard '{DNARROW}'
ELSE
DODEFAULT
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform