Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IsEmpty
Message
 
To
03/03/2010 23:16:28
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Miscellaneous
Thread ID:
01452408
Message ID:
01452439
Views:
48
Johnny,

Check the help file. It says the following about isEmpty for a string:

Returns a logical value indicating if the string value is empty. If allowEmptyValue = true, empty means an empty string If allowEmptyValue = false, empty means an empty or null string

Each possible variable type passed in has its own defintion.

Bob


>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform