I have a VB program that uses user defined types but one of them causes the above error to occur.
An example of what i have is
Type First_type 'salary record
First_type1 As String * 8
First_type2 As String * 3
First_type3 As String * 8
Type Second_type 'salary record
Second_type1 As String * 10
Second_type2 As String * 3
Second_type3 As String * 10
I then declare each of these as a data_type (some have multiple occurences), i.e.
Public Type data_type
First (1) As First_type
Second (5) As Second_type
Third (2) As Third_type
The actual data i have i much larger there are approx 20 - 30 types in the data set.
I can get it to work by commenting a couple of the items out of the data set but wondered if there is a better solution?
Could I just split the data_type into two sections? would this cause me any problems elsewhere in the program?
Any advice would be appreciated.