Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetFldState bug
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
GetFldState bug
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01013581
Message ID:
01013581
Vues:
56
Hi everybody,

I think, we found a problem in GetFldState method. If the cursor is empty, this function returns an empty string and the IsNewAddEmpty method is returning true. However, it should return .f., because the cursor is empty and doesn't have a new record.

What do you think?

Here is our scenario: in the form's Init we call .New() method of the business object. In the PostCancelHook() this object has:
if this.IsEmpty()
   this.new()
endif
Now, on the New the object tries to execute WriteBuffer, which calls IsNewAndEmpty, which calls Cancel, which calls .New in our case and is giving us grief.

Thanks a lot in advance.
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