Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to really cancel a form?
Message
 
À
21/04/2005 12:35:43
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Database:
Visual FoxPro
Divers
Thread ID:
01007086
Message ID:
01007089
Vues:
18
PUBLIC oMyform
oMyform=NEWOBJECT("form1")
oMyform.Show
RETURN

DEFINE CLASS form1 AS form

    ADD OBJECT cmdCancel AS commandbutton WITH ;
        Top = 10, ;
        Left = 256, ;
        Height = 24, ;
        Cancel = .t., ;
        Caption = "Cancel"

    ADD OBJECT text1 AS textbox WITH ;
        Left = 10, ;
        Top = 10, ;
        Width = 100

    PROCEDURE text1.Valid
        RETURN !EMPTY(this.value)
    ENDPROC

    PROCEDURE cmdCancel.Click
        thisform.Release()
    ENDPROC

ENDDEFINE
Press ESC, Note Cancel = .t. in the Button Properties
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform