Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Column navigation in grid
Message
From
07/04/1998 00:39:44
Bob Thickens
Empire Medical Review Services, Inc
Mequon, Wisconsin, United States
 
 
To
03/04/1998 21:21:14
Arnold Lee
K&A International Co.,Ltd
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00089497
Message ID:
00090047
Views:
29
>I have a form with a grid control on it.
>In the Valid event of one of the column will calling FORM2.
>After the FORM2 was closed,the focus of grid was STILL KEEP on that field,i.e. not advance to next column.
>
>How can I solve this problem ?
>Please kindly comment.
if your valid method returns .f. then you will retain focus on the original control. If you return a value from your called form2 it can be used to change the value property of the control you were on. thisform.control.value = returned_value. If you want to retain focus on your current control you simply call the setfocus method. Thisform.control.setfocus() . Be careful about hte firing order of the methods you are using to set values. The vfp samples have a n example which lists the order in which the methods execute. It is in vfp\samples\solutions project. hth b
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform