An old mainframe programmer, I'm used to the concept of records and record layouts when processing sequential files. Why can't I define a record type in VB like:
Type MyRecordLayout
RecordID as String * 6
FirstName as String * 20
etc, etc
End Type
Dim InputRcd as MyRecordLayout
Line Input #1 InputRcd
What I mean is of course I can DECLARE the record type, but whenever I try to stuff the read record into InputRcd I get a data type incompatibility error. The purpose of the construct must be another... What?
/Cy
Type MyRecordLayout
RecordID as String * 6
FirstName as String * 20
etc, etc
End Type
Dim InputRcd as MyRecordLayout
Line Input #1 InputRcd
What I mean is of course I can DECLARE the record type, but whenever I try to stuff the read record into InputRcd I get a data type incompatibility error. The purpose of the construct must be another... What?
/Cy