Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetFldState bug
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
GetFldState bug
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01013581
Message ID:
01013581
Views:
55
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
Next
Reply
Map
View

Click here to load this message in the networking platform