Bug #3
Restore VARIABLE reports a syntax error
Start date:
01/17/2020
Due date:
% Done:
0%
Estimated time:
Affected version:
Related issues
Updated by Baptiste Pillot over 4 years ago
- Status changed from Resolved to Feedback
In order that I can test it, could you please write a little piece of code that would be a "unit test" for this error ?
Thanks.
Updated by Brian Flanagan over 4 years ago
This was a problem in previous versions. (I reported this in 0.9.2.4.)
This appears to be fixed in the newest version (0.9.3.1).
Example: (The results are as expected, even inside a procedure.)
Print "Main Program:" P=2 Restore(P) Read X,Y,Z Print X,Y,Z Print "In Procedure:" Proc InsideProc End 1 Data 1,2,3 2 Data 4,5,6 3 Data 7,8,9 Procedure InsideProc Q=5 Restore(Q) Read A,B,C Print A,B,C 4 Data 0,1,2 5 Data 3,4,5 6 Data 7,8,9 End Proc
I also tried using just the variable name (without the parentheses). This also now works.
Example:
Restore P Restore Q
Updated by Francois Lionet over 4 years ago
- Status changed from Feedback to Resolved
- Target version changed from 0.9.2.6 to 0.9.3.2
Should be fixed in 9.3.2
Updated by Baptiste Pillot about 4 years ago
Confirmed. It works since 0.9.3.
Updated by Baptiste Pillot about 4 years ago
- Related to Bug #46: RESTORE causes internal error added