Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird problem
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Weird problem
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01518581
Message ID:
01518581
Vues:
167
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.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform