Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to really cancel a form?
Message
 
To
21/04/2005 12:35:43
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01007086
Message ID:
01007089
Views:
17
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform