Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WriteMethod at Runtime
Message
 
 
À
08/03/2010 07:42:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01453138
Message ID:
01453152
Vues:
54
You're welcome.

>Thanks - work so fine like this example that I write to test.
>
>
>Public loForm as FormTest
>loForm = NewObject("FormTest")
>loForm.show(1)
>***
>Define Class FormTest as Form
>  AutoCenter = .T.
>  Procedure Init as Boolean
>    this.NewObject("chk", "CheckBox")
>    this.chk.Left    = 10
>    this.chk.Top     = 10
>    this.chk.Value   = .F.
>    this.chk.Visible = .T.
>    ***
>    this.NewObject("cbo", "ComboBox")
>    this.cbo.Left    = 10
>    this.cbo.Top     = 30
>    this.cbo.Visible = .T.
>    ***
>    BindEvent(this.chk, "InteractiveChange", this, "chkChanged")
>  EndProc
>
>  Procedure chkChanged as Boolean
>    this.cbo.Enabled = !this.cbo.Enabled
>  EndProc && Procedure chkChanged as Boolean
>EndDefine && Define Class FormTest as Form
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform