Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SKIP FOR expression
Message
From
18/01/2005 09:55:42
 
 
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
00977929
Message ID:
00978077
Views:
27
Peter

Sorry, I haven't time to adapt this but might the main body of this code be useful?

Terry
* Supplied with a form's name property, go thru list of
* open forms to see if that form is open.
* ____________________
LPARAMETER	tcFormName
LOCAL		lnFormCount, llOpen, lnFormNo, lnOpenFormNo

llOpen		= .F.
lnFormCount 	= _SCREEN.FormCount
lnOpenFormNo	= 0
If lnFormCount > 0
    lnFormNo 	= 1
    Do WHILE lnFormNo <= lnFormCount ;
       AND   not llOpen
      If ALLTRIM( LOWER( _SCREEN.Forms( lnFormNo).Name)) = ALLTRIM( LOWER( tcFormName))
          llOpen	      = .T.
          lnOpenFormNo  = lnFormNo
      Else
         lnFormNo	      = lnFormNo + 1
     Endif
    EndDo
Endif

Return lnOpenFormNo		&& index of specified inquiry form
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform