Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WriteMethod at Runtime
Message
From
08/03/2010 07:42:45
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01453138
Message ID:
01453141
Views:
58
Thinks - 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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform