Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MmType.IsEmpty
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Environment versions
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01144991
Message ID:
01147473
Views:
25
Linda,

>This is a reference to a dataset created from a business object built by the business layer generator. In the business object, the field is defined as 'int' without the ? but the get statement returns a nullable value. In my statement -- if (!mmType.IsEmpty(pe.parish)) --, the pe is a reference to the entity object. Do I need to create a variable of type int? and test that rather than the dataset field value?

Are you saying the pe.Parish property is NOT nullable, but it contains a null value? Is it null because you have created a new record?

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform