Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Showing a form while code runs in the background
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Showing a form while code runs in the background
Divers
Thread ID:
00597768
Message ID:
00597768
Vues:
49
I want to show a modeless form created from a form class I have created at the start of a .PRG, show and hide it periodically during the program (show while the SQL code is running and hide while other message forms [they are modal], and release it at the end of the routine. The only objects on the form are 2 Images and 1 Label.

I have tried code like the sequence below. My problem is that the Hide() seems to work, but I can't make my form (frmWait) re-appear. In addition to the Show(), I have tried Visible=.t., Activate(). No combination seems to make the frmWait re-appear. What am I doing wrong??

Here's generally what I have been trying:

oFrmWait=CREATEOBJECT('frmWait')
WITH oFrmWait
.Lbl1.Caption="Running the next query..."
.Visible=.t.
.Show()
ENDW
** run one SQL SELECT **

** hide it while I show the other form message (modal) **
oFrmWait.Hide()
** show it again temporarily while I run next SQL SELECT **
oFrmWait.Show()

** hide it while I show the other form message (modal) **
oFrmWait.Hide()
** show it again temporarily while I run next SQL SELECT **
oFrmWait.Show()

...Etc. until all of the SQL SELECTS have run

** at the end of the program... **

RELEASE oFrmWait

TIA

Jim Wheelock
Jim Wheelock
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform