Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IsEmpty
Message
From
03/03/2010 23:16:28
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
IsEmpty
Miscellaneous
Thread ID:
01452408
Message ID:
01452408
Views:
103
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
Map
View

Click here to load this message in the networking platform