Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Assigning a form to a variable
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Assigning a form to a variable
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
00995571
Message ID:
00995571
Vues:
52
Hello Again People,

I have an application where a sub-form calls code that has WAIT WINDOWS. The problem is that the WAIT WINDOWS causes the VFP main screen to get focus and the form won't show , the user has to click on taskbar or switch to it. The issue occurs regardless if the sub-form is Modal or Modeless.

So I was thinking about putting a message label in the sub-form itself. I can't use _screen.activeForm since the sub-form is not in the active screen. It has been quite a while since I had to deal with this and I recall that one option was to setup a public variable in the LOAD() of the form like this:
public oForm
oForm = this
Then whenever I needed to access the form I would use oForm instead of _screen.ActiveForm.

is this correct?

is there a better way?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform