Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Business Object Null
Message
De
14/03/2012 07:16:50
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Business Object Null
Divers
Thread ID:
01538296
Message ID:
01538296
Vues:
73
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform