Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid question
Message
De
27/01/1999 14:45:38
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00180924
Message ID:
00180967
Vues:
17
You cannot do it from Valid, but LostFocus is Ok. It's because Valid happens when focus is still on control and SetFocus will fire the same Valid again (i.e. recurrent loop). However, LostFocus happens when control already freed the focus.

>I thought you couldn't call setfocus from lostfocus?
>
>-Michelle
>
>>What is 'header6' here?
>>Hopefully, it's column, and if yes then try something like:
>>thisform.grid.columnx.setfocus
>>and if does not work try
>>thisform.grid.columnx.setfocus
>>NODEFAULT
>>
>>>I am afraid I may be referencing the text control improperly in the setfocus command.
>>>
>>>the way I am doing it is
>>>
>>>thisform.griddetail.header6.text1.setfocus
>>>
>>>>>I have a grid on my form with 6 columns of data.
>>>>>
>>>>>in the 6th column is a textbox which I want to make a required entry field if a certain condition is true. i have no problem checking for the condition in the lostfocus method. When i determine that there must be something in the text box I am haveing difficulty in setting the focus back to that specific field.
>>>>>
>>>>>Any ideas?
>>>>>
>>>>>Nick Berryman
>>>>
>>>>Do you mean than Column/Control.SetFocus does not work properly? Did you try to add NODEFAULT?
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform