class containing an object instance

Hai All,

I don't know why when I try to debug and print a value of the object instance of the class, it gives an hex number, instead of Integer value. Let me show you my code to better understand the problem I am facing. I have a serializable class

--------------------------------------------------------------------------------------------------------
<Serializable()> _
   Public Class conventionPayment
        'Other fields
     Private regisYear As Integer
        Public Sub New()

        End Sub
        ' Do shallow cloning
        Function ShallowClone() As conventionPayment
            Return CType(Me.MemberwiseClone(), conventionPayment)
        End Function

         Function DeepClone() As conventionPayment
            Dim m As New MemoryStream
            Dim b As New BinaryFormatter
            b.Serialize(m, Me)
            m.Position = 0
            Return b.Deserialize(m)
        End Function

       Public Property regYear() As Integer
            Get
                Return regisYear
            End Get
            Set(ByVal Value As Integer)
                regisYear = Value
            End Set
        End Property
'other properties
End class
------------------------------------------------------------------------------------------------------
And... I have another class that contains an object of the above class

 Public Class cancellationClass
      'other field here

        Private cancelledConvReg As New PaymentUtils.conventionPayment

        Public Property cancelledConventionReg() As PaymentUtils.conventionPayment
            Get
                Return cancelledConvReg
            End Get
            Set(ByVal Value As PaymentUtils.conventionPayment)
                'cancelledConvReg = Value.DeepClone                  
                cancelledConvReg.transID = Value.transID           'Line#K
            End Set
        End Property
     'other properties
End class
--------------------------------------------------------------------------------------------------------------------------


Actual object assignment:

Dim cancelledObj As PaymentUtils.cancellationClass
 cancelledObj = New PaymentUtils.cancellationClass
       
 cancelledObj.cancelledConventionReg = objConv   'this objCon is an object of conventionPayment.  
                   ' I don't see any problem with this object  and this objCon is assigned with correct values.

When I try to DEBUG at line#k (see above), Value.regYear displays '&H7D4' which is hex number equivalent of 2004.

Why is that? regYear is integer and I want to assign integer (in decimal system) value to it . Am I missing something?.....


Thanks
LVL 2
karthikeyanTPAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

karthikeyanTPAuthor Commented:
I figured it and solved myself. Accidently, QuickWatch Value is set to Hexadecimal value. I turned it off now. Ovvv....:)

I am going to close this question.
0
ee_ai_constructCommented:
Question answered by asker or dialog valuable.
Closed, 50 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Admin
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.