Nothing as that is not where the problem lies! Lines like those below are causing the problem by confusing the optimising compiler, and because the line number where the error occurs is not reported by an optimised compiled app you think that when you comment out a line and the error disappears it is that line that is at fault. This is not necessarily so.Hi,
what is wrong with this code:
temp() = conv.WGS84UTMTOLatLon(32,temp(1),True,temp(0))
Dim temp(0) 'As Double .... temp() = StrSplit(data,",")
Look at the attached. The Double array LatLon() is used ONLY to receive the return from the library so it is always of type Double. The original temp() is no longer declared Double and is used for general purposes. The image button has no image as you didn't include it in the zip and it wouldn't run without it.Hi,
thank you for your answer but I don't understand the solution. I used different types of variables but it’s always the same error.