You have two choices with RS (actually you had the same two choices with VB)

One create a similar structure ...and the rest of your code works pretty much as is

Or (preferred) is create a CLASS instead

If you DIM all your "global" items in a module they will be PUBLIC to the application

Your "OPEN" statement needs to be replaced with code using a FOLDERITEM and TEXTINPUTSTREAM (which by the way is also how you would have to do it if you converted this from VB6 to VB.NET .... well "almost" the same....)

_________________Dave SisemoreiMac I7[2012], OSX Mountain Lion 10.8.3 RB2012r2.1Note : I am not interested in any solutions that involve custom Plug-ins of any kind

Since the file is block-structured, I would recommend using an RB Structure to read/write the file. Use a FolderItem and BinaryStream for file I/O. You will have to calculate the byte offset instead of using a record number.

If you aren't doing anything complex with the data in your program, you can leave the data in the structure - it will be more familiar to you that way. As your program becomes more complex, a Class will be much more flexible. Read the data via the structure and load it into a class object. Or better, give your class a read method that you pass the binarystream and a record number.

We now understand alot more and we will most likely use the Folderitem and BinaryStream for our file I/O.

However we still do not know how to declare the equivalent RB Structure for WTDETSREC. Noting specifically that the structure contain a string of 25 character and the next 2 bytes is an integer and the last 8 bytes equal to a number.

Add a Module to your project (if you don't already have one). Open the module in the code editor (double click it in the Project tab) and add a Structure to the module. Change the name to WTDETSRECTYPE. Add fields to the structure using the + button.