Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Business Object Null
Message
From
14/03/2012 07:16:50
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Business Object Null
Miscellaneous
Thread ID:
01538296
Message ID:
01538296
Views:
74
Hello. I have a form with a business object and it keeps giving me a null reference error. All fields are set to values, but when I try to save the business object it keeps giving me a null reference error.
Private _unit As Unit
Me._unit = CType(Me.RegisterBizObj(New Unit), Unit)

Me._unit.NewEntity()
Me._unit.Entity.Code = currentLine(1).Substring(4, 3)
Me._unit.Entity.Name = currentLine(2).Substring(6, currentLine(2).Length - 6)
Me._unit.Entity.LastUpdateDate = DateTime.Now
Me._unit.Entity.LastUpdateUser = Environment.UserName
Me._unit.Entity.Active = True
Me._unit.SaveEntity()
Thanks.
Next
Reply
Map
View

Click here to load this message in the networking platform