B
Brian Henry
If i have a structure type and i place the structures data into a tag
property (which is an object) it will go in obviously, but when i pull an
object back into a structrured type it will error.. how do i convert the
object back into a struct? here's an example
public structure teststruc
public name as string
public id as integer
end structure
dim a as teststruc
with a
.name = "me"
.id = 10
endwith
me.tag = a ' this part obviously works fine
' but when i do this i have a conversion error
dim b as teststruc
b = me.tag ' error here converting from object to teststruc
me.textbox1.text = b.name
how would i convert the structure back from an object? thanks
property (which is an object) it will go in obviously, but when i pull an
object back into a structrured type it will error.. how do i convert the
object back into a struct? here's an example
public structure teststruc
public name as string
public id as integer
end structure
dim a as teststruc
with a
.name = "me"
.id = 10
endwith
me.tag = a ' this part obviously works fine
' but when i do this i have a conversion error
dim b as teststruc
b = me.tag ' error here converting from object to teststruc
me.textbox1.text = b.name
how would i convert the structure back from an object? thanks