Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Appending Records to grid w/ down arrow
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00006859
Message ID:
00006866
Vues:
41
>>On Wed, 28 Aug 1996 18:45:49 GMT, you wrote:
>>
>>>I want to be able to have a record appended to the table when the user is on the last record of a grid and the down arrow is pressed. I tried using the beforerowcolumnchange method of the grid to append a blank. This works but when the grid is refreshed, you are not on the blank record.
>>>
>>> I got this to work by in the beforerowcolumnchange method setting the focus to an "add" button on the form, passing a keyboard command of enter (to execute the add button click method) and then passing a keyboard command of tab (to go back to the grid).
>>>
>>> Does anybody know of a better way to do this... I'm sure I'm missing something.... thanks for your help.....
>>>
>>
>>Have you tried THISFORM.addbuttonname.Click
>>and maybe followed by THISFORM.gridname.SetFocus
>>
>>Bob Gould
>>Contemporary Software Systems, Inc.
>>1665 Briargate Blvd Suite #101
>>Colorado Springs, CO 80920
>>719 574 0300 Fax:719 574 4556
>
>
>Thanks.... I did that and when focus returns to the grid, you are on the record you left, not the blank rec..... ??????

yes, because you haven't changed records in the grid...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform