Good evening/morning gents,
Firstly I hope you have both had a great Christmas break! I was making progress with debugging the DataRecorder until I got to a stage where I think I fiddled around too much and messed it up so I'm having to track back to the original version instead of retracing my steps.
Because of this I want to make sure I understand each step properly so…
The first error I get is in the Private Sub Class_Initialize(). I get:
Run-time error '13':
Type mismatch
I have had a thorough read of the following link:
https://msdn.microsoft.com/en-us/lib...(v=vs.60).aspx
Which states that the error is because the variable/property isn’t of the correct type or something was passed through the procedure and the code is expecting a different property or value?
I see above in the code OutputData is defined as a variant and the yellow highlighted section in the debugger is ‘Erase OutputData’, when I hover over it it says “OutputData = Empty”. Because of this I think I originally either redim’d it as something else or fiddled around with the part after the = to make it recognise what it was supposed to be identifying (the output data) but like I said, this returned further problems so what would be the correct solution? Am I thinking along the right lines?
I tried after this:
Dim OutputData As Single/Double/Integer or Long (I was just guessing honestly at this stage) which returned the error: ‘Expected array’
Dim OutputData As Short returned:
Compile error:
User-defined type not defined
CPerry.