Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_Screen.Activeform.Name NOT accurate
Message
De
05/06/2007 17:22:13
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01230724
Message ID:
01230746
Vues:
25
An example would be a prg which determines what to do based on the value of _Screen.activeform.name. Or perhaps a parent class with buttons may determine which buttons to enable based on the value. (Disable the buttons when the form is not active).


>>Over the years we have consistently used _Screen.ActiveForm.Name to determine the current active form. This has worked until recently. Recently, even though another form will actually be ontop and appear to have focus, _Screen.ActiveForm.Name returns the main form. I can only think that a timer may be running which could shift focus back to the mainform somehow. Is there ever a case when _Screen.ActiveForm.Name may be actually WRONG?
>
>
>Tracy,
>
>Where do you check _Screen.ActiveForm.Name ?
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform