How to use Deserialized output?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ed Bitzer

    How to use Deserialized output?

    Obviously a newbie to vb.net and attempting to read an arraylist and then
    use. No problem outputting and Serializing but, and the dumb question - how
    to I extract something from the obj retrieved below (which debug shows has
    values for the Person structure) and place in a text box?

    Appreciate, Ed

    <Serializable() > Public Structure Person
    Dim Name As String
    Dim Age As Integer
    Dim Income As Decimal
    End Structure

    Public Sub btnReadArray_Cl ick(ByVal sender As System.Object, ByVal e As
    System.EventArg s) Handles btnReadArray.Cl ick
    Dim FS As New System.IO.FileS tream("c\test.t xt",
    IO.FileMode.Ope nOrCreate)
    Dim obj As Object
    Dim Persons As New ArrayList
    Dim P As Person
    Dim BinFormatter As New Binary.BinaryFo rmatter
    obj = CType(BinFormat ter.Deserialize (FS), ArrayList)


Working...