Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IsChanged method
Message
De
12/07/2000 17:10:40
Gerald McKinsey
Keystone Consulting Services, Inc.
Yorktown, Indiana, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
IsChanged method
Divers
Thread ID:
00391533
Message ID:
00391533
Vues:
44
Hello,

I am experiencing a very strange problem concerning the IsChanged method of either cBizObjForm or kBizObj. I am being prompted to save changes to the business object even though I have not made any. A little background first. I have subclassed kBizObj into a class KeyBizObj. We have had an occasion to put some code in the IsChanged() method of KeyBizObj. This code only runs if a logical field we have is set to .T.. Otherwise, it issues a DODEFAULT to run the normal code. When the form calls it's IsChanged method, llischanged is set to .F. When it makes its call to the IsChanged method of the business object, the business object method is returning .F. for llischanged. However, when I get back to the form method, I am seeing that is has changed to .T. somehow. In trying to diagnose the problem, I temporarily took my code out of the BizObj IsChanged method. The bizobj method returns .F., which is what I would expect. I went back to KeyBizObj and put in a set step on and a dodefault(), and the bizobj method returns .T.. I take out the set step on and dodefault(), and the bizobj returns .F.. GETFLDSTATE returns all 1's in the business object in both cases. It appears that if I put any code in the IsChanged method in the bizobj, I am not getting the correct results. I am a little confused by this behavior. Has anyone ever seen anything like this?

Thanks,
Brian
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform