Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing a form from my menu
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
00997755
Message ID:
00997871
Vues:
11
Borislav,

One small tweak, you should always ask permission first:

>Try this:
>
>FOR lnForm = 1 TO _screen.FormCount
>    IF VARTYPE(_screen.Forms(lnForm)) == "O" .AND. .NOT. ISNULL(_screen.Forms(lnForm))
>       IF _screen.Forms(lnForm).Baseclass   == "Form"     .AND.;
>          UPPER(_screen.Forms(lnForm).Name) == "CUSTOMER"
           if ( _screen.Forms(lnForm).QueryUnload() )
>             _screen.Forms(lnForm).Release()
           endif
>          EXIT
>       ENDIF
>    ENDIF
>NEXT
>
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform