Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IsEmpty
Message
De
03/03/2010 23:16:28
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
IsEmpty
Divers
Thread ID:
01452408
Message ID:
01452408
Vues:
104
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform