Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid controls
Message
From
23/10/2003 08:03:29
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/10/2003 07:55:17
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00841476
Message ID:
00841491
Views:
31
>1. Thank you.
>2. Can you give more details on the code?
>I used to use with the following way in 'key press' event of the last column of the grid (school1 cursor is the row source of the grid):
LPARAMETERS nKeyCode, nShiftAltCtrl
>if nkeycode=24 or nkeycode=9 or nkeycode=13
>select school1
>	append blank
>	=this.parent.parent.refresh()
>=This.Parent.Parent.Column1.setfocus()
>endif
>if nkeycode=5
>select school1
>if not bof()
>skip -1
>endif
>=This.Parent.Parent.Column1.setfocus()
>endif
But in this form I want to save from the user to tuch in the keyboard and to use only with the mouse.
>Can you help me?
*Grid.click
Insert into school1 (somefield) values (somevalue)
this.Refresh
this.Columns(1).Setfocus()
You might want to check precisely where the user clicked (otherwise this code would run if the user has clicked a region after the last column too).
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
Next
Reply
Map
View

Click here to load this message in the networking platform