>>>I'm using Ingrid 1.5 to locate specific records in a table. Once the user has located the correct record and positioned the cursor anywhere on that row, I would like to be able to press ENTER to exit the grid and have a series of actions performed.
>>>I've tried trapping chr(13) in the keypress method without success.
>>>
>>>Any help would be appreciated.
>>>
>>>Alex Shoob
>>Alex,
>>You would switch currentcontrol and as I remember ingrid.zip includes an example for doing it. If not inform me and I'll post you an example.
>>Cetin
>
>Cetin
>Could you send me an example? I can't find anything in th Ingrid files referring to currentcontrol.
>
>Thanks for all your help.
>Alex
Alex,
Ingrid has a property lInGridActive. You change it for edit and search.
private ...
if nKeyCode = -1
this.lIngridActive = ;
!this.lInGridActive
endif
if this.lIngrid ...
Of course you would want to move this code somewhere else or extend (user may press F2 while editing - and only one switch for all columns would be better).
Cetin