General information
Category:
Forms & Form designer
Environment versions
Network:
Windows 2003 Server
Check for access methods for other properties. SetAll and & or execscript commands can do it too
>Hi everybody,
>
>I'm facing a very strange problem. I have a form which is based on a treeview form class which is based on the dataform class. The DataForm class has a public property called lAdding. In my form I want to utilize this property. I have a pageframe with 10 pages. Each page has Add button and Save button. In the Add button's code I set this property to true. So, when I click Save button I should have this property set to true, right?
>
>Well, somehow it is mysteriously set to false! I click on Add button (I added messagebox to check the property), it shows true. I then type description and press Save button. At the top of save button's code I again show the property and it shows false now!
>
>Nothing in the code resets this property - I've checked the class code and my form's code for any references to lAdding - there is nothing!
>
>Still the property is being re-set.
>
>Do you know what gremlins can I have here?
>
>Thanks in advance.
>
>UPDATE. The mystery is resolved. In the Init method of the form I had code binding Save and Cancel buttons to form's Save/Cancel methods.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only