I want to save a UDT to a file:
Open "afantasticfile.tmp" For Random As #1 Len = Len(CurrentFile)
Put #1, , CurrentFile
Close #1
where CurrentFile is an instance of my UDT defined as follows:
Public Type SetUpFile
DLLList() As String
Title As String
End Type
However, the Len function returns the number of bytes if the array has only one entry i.e. 8. How would I get the correct length (in bytes) of the UDT? I know how many entries there are in the array prior to opening the file.
Thanks in advance
elziko
Open "afantasticfile.tmp" For Random As #1 Len = Len(CurrentFile)
Put #1, , CurrentFile
Close #1
where CurrentFile is an instance of my UDT defined as follows:
Public Type SetUpFile
DLLList() As String
Title As String
End Type
However, the Len function returns the number of bytes if the array has only one entry i.e. 8. How would I get the correct length (in bytes) of the UDT? I know how many entries there are in the array prior to opening the file.
Thanks in advance
elziko