E
Ed Bitzer
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_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnReadArray.Click
Dim FS As New System.IO.FileStream("c\test.txt",
IO.FileMode.OpenOrCreate)
Dim obj As Object
Dim Persons As New ArrayList
Dim P As Person
Dim BinFormatter As New Binary.BinaryFormatter
obj = CType(BinFormatter.Deserialize(FS), ArrayList)
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_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnReadArray.Click
Dim FS As New System.IO.FileStream("c\test.txt",
IO.FileMode.OpenOrCreate)
Dim obj As Object
Dim Persons As New ArrayList
Dim P As Person
Dim BinFormatter As New Binary.BinaryFormatter
obj = CType(BinFormatter.Deserialize(FS), ArrayList)