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