Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to exit Ingrid once row found
Message
From
01/05/1998 11:22:47
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
01/05/1998 07:54:35
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00095581
Message ID:
00096289
Views:
29
>>>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.
*Ingrid.keypress - modified
private ...
if nKeyCode = -1     && F2 Toggles search
  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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform