I have written a test macro which I attach here. The file being worked on is a simple text file of short lines and the intention is to display each line in a message box. However, at "Text File Begin Process" the above-mentioned error message occurs, "Undefined variable or the variable is the wrong type". This is despite "images" being set as a string variable of an array type. If there is an order in which I should set the macro up, what is it? If I need to edit it for debugging, how do I do that, or do I have to rewrite the macro from scratch for every bug? Does the error have something to do with the arrangement of percentage signs on the variable name?
testFileProcess.mex