ok here is the problem I am making a game and the variables work as follows they have a var class which includes the data and a wrapper class which has built in save and load functions which is binary serialization and the var class is accessed through properties now the problem happens when I try to load the var in this case a map it says the object type cannot be converted to the target type
here is some code
Imports System<br />
Imports System.Drawing<br />
imports System.IO<br />
Imports System.Runtime.Serialization<br />
Imports System.Runtime.Serialization.Formatters.Binary<br />
imports System.Windows.Forms<br />
<Serializable()>Public Class Game_map<br />
Implements icloneable<br />
<br />
Function Clone() As Object Implements Icloneable.clone<br />
return me.memberwiseclone<br />
End Function<br />
Private var As game_map_var = New Game_map_var<br />
default Property Root(byval shallow_copy as boolean) As Game_map_var<br />
Get<br />
if shallow_copy = false then Return var.clone else return var<br />
End Get<br />
Set(ByVal new_object As Game_map_var)<br />
if shallow_copy = false then me.var = new_object.clone else me.var = new_object<br />
End Set<br />
End Property<br />
Sub save(ByVal filename As String)<br />
'on error resume next<br />
dim fs As filestream = New FileStream(filename,filemode.Create)<br />
dim bf As New BinaryFormatter<br />
bf.Serialize(fs,var)<br />
fs.Close<br />
End Sub<br />
Sub load(ByVal filename As String)<br />
' on error resume next<br />
if file.Exists(filename) = true then<br />
dim fs As filestream = New FileStream(filename,filemode.Open)<br />
dim bf As New BinaryFormatter<br />
var = ctype(bf.Deserialize(fs),game_map_var)<br />
fs.Close<br />
Else<br />
MessageBox.Show("The file "& filename & " could not be found", "File Not Found!", MessageBoxButtons.OK, MessageBoxIcon.Hand, MessageBoxDefaultButton.Button1)<br />
End If<br />
End Sub<br />
Property name() As string<br />
Get <br />
return me.var.name<br />
End Get<br />
Set(ByVal new_name As string)<br />
me.var.name = new_name<br />
End Set<br />
End Property<br />
Property tiles() As game_map_var.game_tile()<br />
Get <br />
return me.var.tiles<br />
End Get<br />
Set(ByVal new_tiles As game_map_var.game_tile())<br />
me.var.tiles = new_tiles<br />
End Set<br />
End Property<br />
<Serializable()>Public Class Game_map_var<br />
Implements icloneable<br />
Function Clone() As Object Implements Icloneable.clone<br />
return me.memberwiseclone<br />
End Function<br />
public name as string = ""<br />
Public tiles() As game_tile = { _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile, _<br />
new game_tile}<br />
<br />
<Serializable()>Public Class Game_tile<br />
Implements icloneable<br />
Function Clone() As Object Implements Icloneable.clone<br />
return me.memberwiseclone<br />
End Function<br />
Private var As Game_tile_var = New Game_tile_var<br />
default Property Root(byval shallow_copy as boolean) As game_tile_var<br />
Get<br />
if shallow_copy = false then Return var.clone else return var<br />
End Get<br />
Set(ByVal new_object As game_tile_var)<br />
if shallow_copy = false then me.var = new_object.clone else me.var = new_object<br />
End Set<br />
End Property<br />
Property x() As Integer<br />
Get <br />
return me.var.x<br />
End Get<br />
Set(ByVal new_x As Integer)<br />
me.var.x = new_x<br />
End Set<br />
End Property<br />
Property y() As Integer<br />
Get <br />
return me.var.y<br />
End Get<br />
Set(ByVal new_y As Integer)<br />
me.var.y = new_y<br />
End Set<br />
End Property<br />
Property surface() As bitmap<br />
Get <br />
return me.var.surface<br />
End Get<br />
Set(ByVal new_y As bitmap)<br />
me.var.surface = new_y<br />
End Set<br />
End Property<br />
Property state() As tile_state<br />
Get <br />
return me.var.state<br />
End Get<br />
Set(ByVal new_y As tile_state)<br />
me.var.state = new_y<br />
End Set<br />
End Property<br />
<Serializable()>Public Class game_tile_var<br />
Implements icloneable<br />
Function Clone() As Object Implements Icloneable.clone<br />
return me.memberwiseclone<br />
End Function<br />
public x As Integer = 0<br />
public y As Integer = 0<br />
Public surface As bitmap = New Bitmap(32,32,system.Drawing.Imaging.PixelFormat.Format24bppRgb)<br />
public state as tile_state = tile_state.normal<br />
End Class<br />
<Serializable()> public Enum tile_state<br />
normal<br />
solid<br />
up_down_solid<br />
left_right_solid<br />
left_solid<br />
right_solid<br />
up_solid<br />
down_solid<br />
down_right_solid<br />
down_left_solid<br />
up_left_solid<br />
up_right_solid<br />
End Enum<br />
End Class<br />
End Class<br />
<br />
End Class<br />
I know all the class = new class stuff is wierd but I have to do that if i dont the debug says that the "object reference is not set to an object" when I try to access the variable this I believe is because a class is a reference type not a variable at least until you use new which this maybe the source of my problem but structures cannot have starting values which then will return "object reference is not set to an object" when I try to access the varaibles
HELP
|