> After compiling the application, when I run exe file I shows an error
> "Invalid subcript reference."
>
> Cancel, Ignore, Help
>
> Please let me know what is this?
>
> Saif
Saif,
The invalid subscript reference has to do with an array. If, for example you have an array with 5 elements and you attempt to read the 6th element, you will get this error:
LOCAL laArray[5,1], lnI
FOR lnI = 1 TO 5
laArray[lnI,1] = "Element "+ TRANSFORM(lnI)
ENDFOR
FOR lnI = 1 TO 6
WAIT WINDOW "Loop " + TRANSFORM(lnI)
? laArray[lnI,1] && Will give you the error on the sixth loop
ENDFOR
You should also get this error if you run your app (from your Main.Prg) in the development environment. In your project, click on your Main.Prg and then click the "Run" button. When you get to the point where you get that error in the EXE, you should get it in the development environment but this time, you should be able to suspend. When you get the error, suspend and then go to the debugger. The debugger will give you the exact line of code that your program is failing on.
Ken
You shall know the truth - and the truth shall set you free. (John 8:33)