I am passing two double arrays to a function that multiplies them together at corresponding indexes and sends back the sum of all products as a double. I know that the function treats the arrays as variant/double arrays but my understanding was that this did not matter. I appreciate your advice and criticism ahead of time. By the way, this code is almost a direct translation from Fortran77 and I am trying to change as little as possible.
At line 8, AA(i) and BB(i) are coming up as type mismatch. AA and BB are passed in as double arrays and n is passed in as an integer.Please Login or Register to view this content.
Edit: I just realized I was passing in a doubles and not the entire array. Code was fine after all. Thank you please delete this thread if needed.
Bookmarks