I want to be able to preserve the value of 'FileNum', (variable used in a macro), and access it from other macros after the macro that generated it is switched off, or use it in the same macro called again later in my Gcode. I tried this:-
Dim FileNum As Double
'Code arriving at a value for FileNum...
Param1() = FileNum
It tells me I have a type mismatch at the last line, which I don't understand, as the manual says that parameters are doubles, like my variable.
My variable is never more than 2 digits long, so doesn't have to be a double; I just thought it needed to be, in order to transfer its value to parameter1.
Am I not assigning the value of FileNum correctly to Param1()?
How can I pass values from one macro to another?
Thanks,
M21