General information
Category:
The Mere Mortals .NET Framework
When is Empty -- Empty? When the business rules are automatically generated with the BLG it uses the mmType.IsEmpty method to test if the value of a string is empty. In MM.NET what is the definition of "Empty"? A string with nothing but spaces is empty to me. I blanked out a controls value by tabbing to it and deleting all the characters. I then Save the changes. The breakpoint shows that the rule is validated but the if (mmType.IsEmpty(string)) fails and does not indicate the string is empty with spaces in it. The database table schema for that column is a char(10) not a varchar(10) so I am assumming that is why the spaces are there even though I deleted them in the bound control.
Does this mean I have to over-ride all automatically generated rules just to place a trim() around the string? or am I missing something?
Thanks
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only