We just upgraded (finaly) from 2.1 to 4.8. When I first installed 4.8 I recompiled our scripts and they seemed to work fine. Today though I am getting
"error 5: invalid identifier" when I compile and run.
The source line text from debug is:
fread 51 storenumber[anyx] 4
hit continue and...
fread 51 dataprobe[anyx] 1
hit continue and...
fread 51 inc[anyx] 1
hit continue and...
fread 51 csu[anyx] 1
hit continue and...
fread 51 framerelay[anyx] 12
hit continue and...
fread 51 backupint[anyx] 12
There are no other occurances of fread in the script so I think that this is where the problem lies. Heres the whole snippet from the fread and the corresponding fwrite.
fopen 51 filenew READWRITE
for anyx = 0 upto 999
fread 51 storenumber[anyx] 4
if strcmp storenumber[anyx] "endo"
storenumber[anyx] = ""
lastx = anyx
exitfor
endif
fread 51 dataprobe[anyx] 1
fread 51 inc[anyx] 1
fread 51 csu[anyx] 1
fread 51 framerelay[anyx] 12
fread 51 backupint[anyx] 12
endfor
copyfile filenew fileold
fopen 50 filenew CREATE
for anyx = 0 upto (lastx - 1)
fwrite 50 storenumber[anyx] 4
fwrite 50 dataprobe[anyx] 1
fwrite 50 inc[anyx] 1
fwrite 50 csu[anyx] 1
fwrite 50 framerelay[anyx] 12
fwrite 50 backupint[anyx] 12
endfor
fwrite 50 " endo" 5
fclose 50
This script worked fine in 2.1 and I swear it worked when I first installed 4.8 (after recompiling) so where is this error coming from? I can compile it in 2.1 again and it works fine.
"error 5: invalid identifier" when I compile and run.
The source line text from debug is:
fread 51 storenumber[anyx] 4
hit continue and...
fread 51 dataprobe[anyx] 1
hit continue and...
fread 51 inc[anyx] 1
hit continue and...
fread 51 csu[anyx] 1
hit continue and...
fread 51 framerelay[anyx] 12
hit continue and...
fread 51 backupint[anyx] 12
There are no other occurances of fread in the script so I think that this is where the problem lies. Heres the whole snippet from the fread and the corresponding fwrite.
fopen 51 filenew READWRITE
for anyx = 0 upto 999
fread 51 storenumber[anyx] 4
if strcmp storenumber[anyx] "endo"
storenumber[anyx] = ""
lastx = anyx
exitfor
endif
fread 51 dataprobe[anyx] 1
fread 51 inc[anyx] 1
fread 51 csu[anyx] 1
fread 51 framerelay[anyx] 12
fread 51 backupint[anyx] 12
endfor
copyfile filenew fileold
fopen 50 filenew CREATE
for anyx = 0 upto (lastx - 1)
fwrite 50 storenumber[anyx] 4
fwrite 50 dataprobe[anyx] 1
fwrite 50 inc[anyx] 1
fwrite 50 csu[anyx] 1
fwrite 50 framerelay[anyx] 12
fwrite 50 backupint[anyx] 12
endfor
fwrite 50 " endo" 5
fclose 50
This script worked fine in 2.1 and I swear it worked when I first installed 4.8 (after recompiling) so where is this error coming from? I can compile it in 2.1 again and it works fine.