Does anyone else get a compiler GPF with this code ?
Code:
#COMPILE EXE #DIM ALL TYPE PAMatrix Compensation (1 TO 2) AS CURRENCY SickPay (1 TO 2) AS CURRENCY Interest (1 TO 2) AS CURRENCY Dividends (1 TO 2) AS CURRENCY EstateTrust (1 TO 2) AS CURRENCY END TYPE FUNCTION PBMAIN () AS LONG LOCAL A1 AS CURRENCY LOCAL I, J AS LONG DIM PAU AS PAMATRIX FOR J=1 TO 2 FOR I=1 TO 100 PAU.COMPENSATION(J)+=I 'THIS LINE CAUSES A COMPILER GPF ' PAU.COMPENSATION(J)=PAU.COMPENSATION(J)+I 'THIS LINE WORKS NEXT NEXT ? "PAU.COMPENSATION(1)="+STR$(PAU.COMPENSATION(1)) ? "PAU.COMPENSATION(2)="+STR$(PAU.COMPENSATION(2)) END FUNCTION
Comment