Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Carry
Message
From
05/01/1997 16:37:48
 
 
To
03/01/1997 17:52:51
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Re: Carry
Miscellaneous
Thread ID:
00016396
Message ID:
00016498
Views:
44
>>>>I would like to set up a function key so that when you press it the textbox that currently has the focus on a form will grab the value from the preceeding record in the table. Is this possible and if so how? Thanks for the help and happy new year!!!
>>>
>>>You can just go to Textbox.Keypress event to intercept appropriate key and fire some code to set Value property to previous record value.
>>
>>Edward,
>>i get what you mean, but how do I do it?
>
>Take it easy:
>&& KeyPress event
>if nKeyCode=28 && any code you like (see INKEY() in manual)
> select your_table
> skip -1
> this.value=your_table.your_field
> skip
>endif

Won't the record be written to the table when the record pointer is moved?

Craig
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