Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why does GetFldState() return 2 for memo fields
Message
From
17/01/2008 15:21:44
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Database:
Firebird
Miscellaneous
Thread ID:
01282378
Message ID:
01282778
Views:
8
>Hi Hilmar
>
>>ENTER will add a new line. The "correct" key to go from one field to the next is TAB / Shift-TAB.
>
>Yes, but the trend here is Enter to go to the next field.

That trend started to go out of fashion in the nineties, on Macs and Ataris and other GUIs, where all of a sudden there was no data entry at all. It became a matter of religion - if you enter your data, you'll be damned with a Form.Close() and cmdDefault.Click() befalling you. Now if you tabbed your data, everything was fine (except that you wanted to use your left hand for something else, for instance to keep a finger on where you are reading from - well, tough luck, you need to press Tab after every field). Your data were blessed with salvation (form.save()).

There's a heretical way out of your conundrum:
* editbox.keypress
...
case nKeyCode=13
   nodefault
   dodefault(9,0)
...
Not quite sure the dodefault with different parameters will work the same as if user pressed Tab, but if that fails, you can always go the dirty old way of Keyboard "{tab}".

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform