Sure, just add :
Dim foo as foorecord
Then use foo to access all of the record elements like foo.a, etc. The randomaccessfile type provides for reading and writing objects and works well for records/structures/custom types like this.
--- Jem
Jem, thanks! But (and here I confess to extreme personal density this afternoon) I am kind of doing that.
Dim Foo as FooRecord
[read a line from the delimited file and load, for instance...]
Dim dummystring as string
dim dumpbydelimiter() as string
dummystring = file.readlist(name of the file)
dumpbydelimiter = regex.split("]",dummystring)
foo.a = dumpbydelimiter(0) : foo.b = dumpbydelimiter(1)...
[load screen with variables and allow user to modify foo.a, foo.b, etc.]
When it comes time to write back out to the output file, though, if I just write record Foo, the delimiters will be missing. Subsequent reads won't load correctly. I think in my original post I should have said I was looking for something more like:
OutputString = ""
For i = 0 to Foo.<numberofelements>
OutputString = OutputString & Foo.(i) & "]"
Next
Does that make sense at all or...?
Thanks!