Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with form.keypress
Message
 
To
18/03/2003 10:15:56
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00766859
Message ID:
00767232
Views:
29
>Hello Eric.
>
>This application is written in vfp7. The field with a problem is within a grid. It is a regular text box.
>
>You need code like this in a form method that you can call before changing the active page:
>
>
>IF TYPE( 'Thisform.ActiveControl.name' ) = 'C'
>  IF LOWER( Thisform.ActiveControl.BaseClass ) = 'grid'
>    FOR EACH loColumn IN Thisform.ActiveControl.Columns
>      IF loColumn.ColumnOrder = Thisform.ActiveControl.ActiveColumn
>        loControl = EVALUATE( 'loColumn.' + locolumn.CurrentControl )
>        loControl.SetFocus()
>        EXIT
>      ENDIF
>    ENDFOR
>  ENDIF
>ENDIF
>
whow! I will try that. thanks
Eric Crespin
Consultant
PC PLUS Software Inc.
www.pcplus.ca
Previous
Reply
Map
View

Click here to load this message in the networking platform