Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>The VFP doc says that one cannot SETFOCUS in a VALID, RANGE-HIGH/LOW, etc. And yet, I have a form where I accidentally did this and Lo! it works most of the time, but fires an error "cannot setfocus in valid, ..." some of the time. I actually stepped through the code in VALID and watched it pass right over the SETFOCUS.
Arne;
What you will find is that it will continue to behave as you described and then one fine day (no day in particular), it will quit working! I have seen this occur and trust that setfocus and valid (etc.) do not mix. This type of behavior is something I call a “soft failure”. Sometimes code will work (that should not) and some time down the road it will come back to bite you.
Never deliver code of this type to a client or you may end up working at McDonald's in a new career field.
Tom
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement