Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird problem
Message
From
20/07/2011 00:46:21
Victor Chignes
Inteliventas
Peru
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01518581
Message ID:
01518583
Views:
68
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
Map
View

Click here to load this message in the networking platform