samm
09-06-2000, 01:12 PM
I have a need to store complex variables as single strings, and then restore them. These are custom type variables, i.e.:
type myvariable
a as int
b as double
c as string
d as boolean
end type
Ideally, I'd like to have a pair of functions of this sort:
string function myvar2string (z as myvar)
myvar function string2myvar (y as string)
for conversion back and forth. I've considered individually converting each var into a string, then concatenating each together, but this seemed kind of tedious since I have
several dozen custom variables, and each would require a separate version of myvar2string.
Any suggestions?
type myvariable
a as int
b as double
c as string
d as boolean
end type
Ideally, I'd like to have a pair of functions of this sort:
string function myvar2string (z as myvar)
myvar function string2myvar (y as string)
for conversion back and forth. I've considered individually converting each var into a string, then concatenating each together, but this seemed kind of tedious since I have
several dozen custom variables, and each would require a separate version of myvar2string.
Any suggestions?