Hi!
Total newb question, I'm sure, but I have a flat file which I read which contains record information on each line, separated by a delimiter:
foo.fle
a]b]c]d]e]f]g]h]i]j.....
I load this into a custom type:
Type FooRecord (a as string, b as string, c as string, d as string...)
and the user gets to modify values. When it comes time to rewrite the record I would like to repopulate a string with foorecord.a, foorecord.b, etc. Is there any way to access the elements of FooRecord? For instance, I currently have to:
Outputstring = FooRecord.a & "]" & FooRecord.b & "]" & FooRecord.c...
Is there any way to do something like this:
For i = 0 to FooRecord.Elements
Outputstruing = outputstring & FooRecord.(i)
Next
??
I'm almost certain I've run across some way to access individual elements of a custom data type using an index, but if so I can't seem to find it again!
Thanks everyone!
:sign0104:
Total newb question, I'm sure, but I have a flat file which I read which contains record information on each line, separated by a delimiter:
foo.fle
a]b]c]d]e]f]g]h]i]j.....
I load this into a custom type:
Type FooRecord (a as string, b as string, c as string, d as string...)
and the user gets to modify values. When it comes time to rewrite the record I would like to repopulate a string with foorecord.a, foorecord.b, etc. Is there any way to access the elements of FooRecord? For instance, I currently have to:
Outputstring = FooRecord.a & "]" & FooRecord.b & "]" & FooRecord.c...
Is there any way to do something like this:
For i = 0 to FooRecord.Elements
Outputstruing = outputstring & FooRecord.(i)
Next
??
I'm almost certain I've run across some way to access individual elements of a custom data type using an index, but if so I can't seem to find it again!
Thanks everyone!
:sign0104: