Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Assign Method
Message
From
22/11/2005 18:39:31
Sid Meyers
Omegaware Consulting, Inc.
Minnesota, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Assign Method
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01071364
Message ID:
01071364
Views:
56
I'm working on developing some base classes but am running across a problem in which I could use some help.

I've got a container class and a form class.

I want the container class to hook itself into the form when it is dropped onto my base form class as follows:

container.init
IF PEMSTATUS(this.Parent,"lFlag",5)
  IF this.Parent.lFlag
    this.dosomething()
    BINDEVENT(this.Parent,"addeditstatus_assign",this,"dosomething")
  ENDIF
ENDIF
But when I execute this code the assign method is not visible. It sees my "addeditstatus" but not the "addeditstatus_assign". Is this by design or am I just missing something at this point?

I would like the container to change color when I put the form into edit mode and back when out of edit mode. I've previously accomplished this through the Form.Refresh method. This works but I would like to accomplish this through a single property .T./.F. flag on the form as a base function of my container class and not have to add code to each one of my forms.

I think I'm on the right track here but let me know if anyone has a "better" approach or if you've got some insight to working with the Assign methods.

Thanks,
-Sid Meyers.
Next
Reply
Map
View

Click here to load this message in the networking platform