Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setfocus() gives error Cannot call setfocus from within
Message
De
10/02/2005 16:39:17
 
 
À
10/02/2005 08:16:26
Freddie Rodrigues
Bitrun Business Solutions
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00985506
Message ID:
00985776
Vues:
31
>I have placed a grid on a Form. To Add & Delete records, I have two seperate [command buttons]. After I have clicked any of each I need the cursor to get back to the grid & record accordingly.
>
>In the [Click Event] of the [command button]
>Typed Code & the Error message received thereafter.
>
>thisform.pageframe1.page1.grditemsgrid.setfocus()
>
>Error message: Cannot call Setfocus from within a When, Valid, RangeHigh or RangeLow event.
***CommandButton.Valid
this.Enabled = .F.

***CommandButton.LostFocus
this.Enabled = .T.
NODEFAULT
thisform.pageframe1.page1.grditemsgrid.setfocus
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform