Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enter-key won't advance to next textbox, but tab-key wil
Message
From
04/03/1999 17:33:52
 
 
To
04/03/1999 16:56:27
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00194219
Message ID:
00194243
Views:
23
>Well I've screwed something up in a new way so I'm about to learn lots (I hope).
>
>Working on form with textboxes for entry - tab order set - enter your data, press enter-key, and focus moves to next box.
>
>Worked out lots of details elsewhere on form and then notice that 'enter your data, press enter-key' no longer moves focus to next textbox.
>
>So I event track an older version of form where enter-key is ok and see:
>plot.Paint()
>plot.cooperator1.KeyPress(13, 0)
>plot.KeyPress(13, 0)
>plot.cooperator1.RangeLow()
>plot.cooperator1.RangeHigh()
>plot.cooperator1.Valid()
>plot.cooperator1.LostFocus()
>plot.plot_bc1.When()
>plot.plot_bc1.GotFocus()
>plot.plot_bc1.Message()
>plot.Paint()
>
>then event track non-working form (pressing enter-key) and see:
>plot.Paint()
>plot.cooperator1.KeyPress(13, 0)
>plot.KeyPress(13, 0)
>plot.cooperator1.RangeLow()
>plot.cooperator1.RangeHigh()
>plot.cooperator1.Valid()
>plot.Paint()
>
>looks like somethings up with valid BUT you can tab-key to next field or click on next field and focus moves.
>
>so event track non-working form (pressing tab-key) and see:
>plot.Paint()
>plot.cooperator1.KeyPress(9, 0)
>plot.KeyPress(9, 0)
>plot.cooperator1.RangeLow()
>plot.cooperator1.RangeHigh()
>plot.cooperator1.Valid()
>plot.cooperator1.LostFocus()
>plot.plot_bc1.When()
>plot.plot_bc1.GotFocus()
>plot.plot_bc1.Message()
>plot.Paint()
>
>
>
>
>Nothing in valid or superclass valid of plot.cooperator1.valid .
>
>Tried putting RETURN .t. in plot.cooperator1.valid but no changes.
>
>I've got to move onto other projects for the day so it was time to ask for help.


First, Tab is the proper way to move from field to field, while Enter is not. Under Windows, Enter means "Run the code for the default command button". Did you add a command button to the form or set one as Default? That could cause your problem.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform