Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems managing grids
Message
De
21/12/2004 12:45:33
 
 
À
21/12/2004 12:17:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Divers
Thread ID:
00971008
Message ID:
00971066
Vues:
24
>Thanks for the second answer.
>About the first :
>I have to check if a record exist, I usually launch a message which tells the user that the record was not found, now I was asked to leave the focus on the same control or in some case to set the focus to the preceding column.
>I put the code in the lost focus event, something like this :
>do case
> case somecondition
> this.setfocus()
> case othercondition
> this.parent.parent.columns(ncol).txt.setfocus()
>endcase
>*
>this approach does not work properly, maybe i interact in a wrong way with my classes but i'm very mixed up
>*

I remember a problem with this issue, but the memory it is not perfect.

try:
* first programming rule: for same job you have to use same code
this.parent.parent.columns(ncol).setfocus
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform