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