In other forms of BASIC and even other languages, we have been able to
read X byte fixed length records over a field record layout. It seems
very problematic in VB.NET.
What we are trying is to have a 750 element byte array into which we
read with a FileStream. Then we Marshal.PtrToStructure. The trick seems
to be finding the exact element properties to map out the various length
ansi character fields. These strings have no prefix length, and no
terminator. They are just like: a 5 character field followed by a 3
character field, followed by a 1 character field, and so on. There are
so dogged many different types of records we have, and so many layouts,
if we can get a layout kind sequential to do this, it will make
maintenance a huge help.
Last type we tried was ByValTStr with SizeConst for the field length,
and ansi for the record type. This seems to drop the last character of
each field.
Please help!!!!
Lee Gillie - 22 Sep 2005 15:44 GMT
> In other forms of BASIC and even other languages, we have been able to
> read X byte fixed length records over a field record layout. It seems
[quoted text clipped - 15 lines]
>
> Please help!!!!
Through another source of help we found that using any type of string
results in loss of data within the field. One must map an array of char
to get back every single character. What a pain!