Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with data entry in my form
Message
From
08/06/2004 21:52:14
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
08/06/2004 21:23:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00911493
Message ID:
00911499
Views:
18
The standard key to advance to the next object is TAB.

The standard key to go back to the previous object is SHIFT-TAB.

These are Windows standards; for example, check a Word dialog: TAB and SHIFT-TAB will work correctly; arrow keys, or ENTER, may have undesired side-effects.

The best solution is to educate the users to this standard interface.

A workaround is possible: you can redefine down-arrow, and make it work like TAB. However, going away from the standard interface is not worth the trouble, IMNSHO.

Greetings,

Hilmar.

>i have 4 textboxes in my form whose controlsource are leave.empno, leave.type, leave.frdate and leave.todate.
>
>i also have an ADD button with append blank. i have a separate SAVE button which does the =tableupdate(.t.)
>
>leave.type is 1 character so when i enter say "X" cursor moves on leave.frdate.
>
>if say for example i have entered "X" when i should have entered "Y", i use the up arrow key to move cursor to leave.type.
>
>cursor moves but my problem is when i do this, value of leave.type changes to the first record of the table leave. if i press up arrow key again, leave.empno changes to the first record of the table leave again.
>
>how can i avoid this? should i just trap the up arrow key? but i want my users to be able to move in the textboxes while in the append mode using the arrow keys.
>
>pls advise. TIA.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform