Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

when custom property changed

Status
Not open for further replies.

nevin2007

Programmer
Aug 21, 2009
31
IR
Hi all
I add a custom property to a form (name:inrunmode) by default value .f.
Some function or procedure or method change inrunmode value by their code
I want to run a custom method when inrunmode changed.
how can i determine when inrunmode changed.
(Something like Bindevent ProgrammaticChange of a textbox but for custom property)
 
This is easy. You need to create an Assign method for the property.

1. In the Form Designer, go to Form / Edit Property/Method.

2. Select your custom property in the box on the left.

3. Tick the Assign Method box on the right. Click OK.

You now have a custom method called iRunMode_Assign. You can write code here. The code will execute whenever iRunMode is changed.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top