Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with form.keypress
Message
 
À
18/03/2003 10:15:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00766859
Message ID:
00767232
Vues:
28
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform