Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you skip between columns?
Message
From
04/05/2001 03:12:20
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00503237
Message ID:
00503366
Views:
26
>I have a BROWSE window (yes I know how evil they are but it is an older system and it does have them). When the client tabs or clicks to say the third column and then presses the ADD button, the code adds a new row to the table. But the focus is still on the third column of the new row. How do I get the focus to the first column (or any specific column) of the new row?
>
>Brenda

Brenda,

the way I have moved around browses in the past was using recursion an the keyboard function...
Assuming the first column is called fred

On key label Ctrl+I Keyboard IIF(Varread() = "Fred", "", "{ctrl+I}")

then when you want to add a new record...
Append Blank
Keyboard "{Ctrl+I}"
Ctrl+I is just a key combination that I made up you can use anything (but try and find one that is not used) you are also best to reset it when finished.

I think it was something like that anyway <g>

HTH
Will Jones
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform