Public Type palletType palletFileVersion As Integer typeOfPallet As Integer Assembly As assemblyType End Type
assemblyType is also a type that I have defined. The definition is not of interest here why I omit it.
Now, suppose I do this:
dim pallet1 as palletType dim pallet2 as palletType pallet1.palletFileVersion = 1 pallet1.typeOfPallet = .... 'And all other fields too pallet2.palletFileVersion = 1 pallet2.typeOfPallet = .... 'And all other fields too
Later on in my code I want to know if the contents of pallet1 are the same as the contents of pallet2 so I do this:
If (pallet1 = pallet2) then.... 'Do somthing
This (above) doesn't work!
I get a "compile error, type mismatch" which points to the equal sign.
How can I, if possible at all, compare the two sets of data without explicitly comparing each data field?